* [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* Re: [PATCH] rbd: reacquire lock should update lock owner client id
2017-12-13 15:43 [PATCH] rbd: reacquire lock should update lock owner client id Florian Margaine
@ 2018-01-12 7:37 ` Ilya Dryomov
0 siblings, 0 replies; 2+ messages in thread
From: Ilya Dryomov @ 2018-01-12 7:37 UTC (permalink / raw)
To: Florian Margaine; +Cc: Ceph Development
On Wed, Dec 13, 2017 at 4:43 PM, Florian Margaine <florian@platform.sh> wrote:
> 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);
> }
> }
Hi Florian,
Just wanted to let you know that this patch has been merged into 4.15,
with a minor modification:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=edd8ca8015800b354453b891d38960f3a474b7e4
Thanks,
Ilya
^ permalink raw reply [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.