diff options
author | David Howells | 2019-05-10 23:03:31 +0100 |
---|---|---|
committer | David Howells | 2019-05-16 16:25:21 +0100 |
commit | c7226e407b6065d3bda8bd9dc627663d2c505ea3 (patch) | |
tree | ffdfd1eb1aa6c2096f4bc371b3347b57427665b9 /include | |
parent | d9052dda8a39069312218f913d22d99c48d90004 (diff) |
afs: Fix lock-wait/callback-break double locking
__afs_break_callback() holds vnode->lock around its call of
afs_lock_may_be_available() - which also takes that lock.
Fix this by not taking the lock in __afs_break_callback().
Also, there's no point checking the granted_locks and pending_locks queues;
it's sufficient to check lock_state, so move that check out of
afs_lock_may_be_available() into __afs_break_callback() to replace the
queue checks.
Fixes: e8d6c554126b ("AFS: implement file locking")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions