Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: e8d6c55 ("AFS: implement file locking") Signed-off-by: David Howells <[email protected]>
- Loading branch information