]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: support updating the lock cookie without releasing the lock
authorIlya Dryomov <idryomov@gmail.com>
Thu, 13 Apr 2017 10:17:38 +0000 (12:17 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:23 +0000 (09:19 +0200)
commit75d9282030570d4a4e0db2dbe1e34812c29c122c
treeaafb98077b59c9a8488b2e15082099fec2ce9a9d
parentf1c5e9f9a3e34f15e2f228afeb205bdfce9ebbcd
rbd: support updating the lock cookie without releasing the lock

As we no longer release the lock before potentially raising BLACKLISTED
in rbd_reregister_watch(), the "either locked or blacklisted" assert in
rbd_queue_workfn() needs to go: we can be both locked and blacklisted
at that point now.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
drivers/block/rbd.c
include/linux/ceph/cls_lock_client.h
net/ceph/cls_lock_client.c