summaryrefslogtreecommitdiffstats
path: root/fs/afs/security.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-05-10 23:03:31 +0100
committerDavid Howells <dhowells@redhat.com>2019-05-16 16:25:21 +0100
commitc7226e407b6065d3bda8bd9dc627663d2c505ea3 (patch)
treeffdfd1eb1aa6c2096f4bc371b3347b57427665b9 /fs/afs/security.c
parentd9052dda8a39069312218f913d22d99c48d90004 (diff)
downloadlinux-c7226e407b6065d3bda8bd9dc627663d2c505ea3.tar.bz2
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 'fs/afs/security.c')
0 files changed, 0 insertions, 0 deletions