David Howells c7226e407b 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>
2019-05-16 16:25:21 +01:00
..
2008-04-29 08:06:26 -07:00
2019-05-07 16:48:44 +01:00
2019-05-16 12:58:23 +01:00
2018-10-12 13:18:57 +02:00
2019-04-08 18:35:56 -05:00
2018-10-24 00:41:09 +01:00
2019-05-16 12:58:23 +01:00
2019-02-28 03:29:38 -05:00