All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rbd: reacquire lock should update lock owner client id
@ 2017-12-13 15:43 Florian Margaine
  2018-01-12  7:37 ` Ilya Dryomov
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Margaine @ 2017-12-13 15:43 UTC (permalink / raw)
  To: ceph-devel; +Cc: idryomov

[-- Attachment #1: Type: text/plain, Size: 748 bytes --]

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

This ports commit 475dda114a7e25b43dc9066b9808a64fc0c6dc89 from librbd
to krbd.

Signed-off-by: Florian Margaine <florian@platform.sh>
---
 drivers/block/rbd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index adc877dfef5c..4e2acf9c81af 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -3884,6 +3884,7 @@ static void rbd_reacquire_lock(struct rbd_device *rbd_dev)
 					   &rbd_dev->lock_dwork, 0);
 	} else {
 		strcpy(rbd_dev->lock_cookie, cookie);
+		queue_work(rbd_dev->task_wq, &rbd_dev->acquired_lock_work);
 	}
 }
 
-- 
2.14.3


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-12  7:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13 15:43 [PATCH] rbd: reacquire lock should update lock owner client id Florian Margaine
2018-01-12  7:37 ` Ilya Dryomov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.