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)
commit14bb211d324d6c8140167bd6b2b8a80757348a2f
treeaafb98077b59c9a8488b2e15082099fec2ce9a9d
parentcbbfb0ff115159847121afe9c7553bd5c86f6062
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