From b43b501b81deb7313b6654587c8bedc942da5264 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Thu, 23 Jul 2020 11:09:46 +0800 Subject: [PATCH] doc: specify RBD_LOCK_MODE_EXCLUSIVE for exclusive-lock The exclusive-lock could be transited transparently between clients after finishing write operation. To disable "transparent" transition, it needs to acquire the lock with RBD_LOCK_MODE_EXCLUSIVE. Signed-off-by: Changcheng Liu --- doc/rbd/rbd-exclusive-locks.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/rbd/rbd-exclusive-locks.rst b/doc/rbd/rbd-exclusive-locks.rst index f07651d32ed..cedc0d11191 100644 --- a/doc/rbd/rbd-exclusive-locks.rst +++ b/doc/rbd/rbd-exclusive-locks.rst @@ -36,7 +36,9 @@ Exclusive locking is mostly transparent to the user. Note that it is perfectly possible for two or more concurrently running processes to merely open the image, and also to read from it. The client acquires the exclusive lock only when attempting to -write to the image. +write to the image. To disable transparent lock transitions between +multiple clients, it needs to acquire the lock specifically with +``RBD_LOCK_MODE_EXCLUSIVE``. Blacklisting -- 2.39.5