diff options
| author | David Howells <[email protected]> | 2019-05-10 22:14:41 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2019-05-16 15:25:21 +0000 |
| commit | fd711586bb7d63f257da5eff234e68c446ac35ea (patch) | |
| tree | 843b8000ed1df14647a708dde3f161e1a510a37b /lib/test_bitmap.c | |
| parent | afs: Fix lock-wait/callback-break double locking (diff) | |
| download | kernel-fd711586bb7d63f257da5eff234e68c446ac35ea.tar.gz kernel-fd711586bb7d63f257da5eff234e68c446ac35ea.zip | |
afs: Fix double inc of vnode->cb_break
When __afs_break_callback() clears the CB_PROMISED flag, it increments
vnode->cb_break to trigger a future refetch of the status and callback -
however it also calls afs_clear_permits(), which also increments
vnode->cb_break.
Fix this by removing the increment from afs_clear_permits().
Whilst we're at it, fix the conditional call to afs_put_permits() as the
function checks to see if the argument is NULL, so the check is redundant.
Fixes: be080a6f43c4 ("afs: Overhaul permit caching");
Signed-off-by: David Howells <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions
