AFS: implement file locking
Implement file locking for AFS. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
b0fed3140f
commit
e8d6c55412
@@ -125,6 +125,9 @@ static void afs_break_callback(struct afs_server *server,
|
||||
spin_unlock(&server->cb_lock);
|
||||
|
||||
queue_work(afs_callback_update_worker, &vnode->cb_broken_work);
|
||||
if (list_empty(&vnode->granted_locks) &&
|
||||
!list_empty(&vnode->pending_locks))
|
||||
afs_lock_may_be_available(vnode);
|
||||
spin_unlock(&vnode->lock);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user