]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: reacquire lock should update lock owner client id
authorFlorian Margaine <florian@platform.sh>
Wed, 13 Dec 2017 15:43:59 +0000 (16:43 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 9 Jan 2018 16:40:21 +0000 (17:40 +0100)
commit2df5a83e584777c5b32b21b515687816b7504701
tree708eaf41ea5402e684dcf5f69f1b4030253e2e23
parent27dfe35f3d23ec6f3c79325565f99021f3f8a04f
rbd: reacquire lock should update lock owner client id

Otherwise, future operations on this RBD using exclusive-lock are
going to require the lock from a non-existent client id.

Cc: stable@vger.kernel.org
Fixes: ae2fbabf1152 ("rbd: support updating the lock cookie without releasing the lock")
Link: http://tracker.ceph.com/issues/19929
Signed-off-by: Florian Margaine <florian@platform.sh>
[idryomov@gmail.com: rbd_set_owner_cid() call, __rbd_lock() helper]
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c