CEPH filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] rbd: exclusive mapping (-o exclusive) fixes
@ 2024-07-24  6:29 Ilya Dryomov
  2024-07-24  6:29 ` [PATCH 1/3] rbd: rename RBD_LOCK_STATE_RELEASING and releasing_wait Ilya Dryomov
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ilya Dryomov @ 2024-07-24  6:29 UTC (permalink / raw)
  To: ceph-devel; +Cc: Dongsheng Yang

Hello,

This addresses incorrect assumptions on rbd_dev->lock_state in
rbd_img_exclusive_lock() and rbd_add_acquire_lock() which could lead to
issues with exclusive mappings in the face of watch errors.

Thanks,

                Ilya


Ilya Dryomov (3):
  rbd: rename RBD_LOCK_STATE_RELEASING and releasing_wait
  rbd: don't assume RBD_LOCK_STATE_LOCKED for exclusive mappings
  rbd: don't assume rbd_is_lock_owner() for exclusive mappings

 drivers/block/rbd.c | 35 +++++++++++++++--------------------
 1 file changed, 15 insertions(+), 20 deletions(-)

-- 
2.45.1


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

end of thread, other threads:[~2024-07-25 10:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-24  6:29 [PATCH 0/3] rbd: exclusive mapping (-o exclusive) fixes Ilya Dryomov
2024-07-24  6:29 ` [PATCH 1/3] rbd: rename RBD_LOCK_STATE_RELEASING and releasing_wait Ilya Dryomov
2024-07-25  8:46   ` Dongsheng Yang
2024-07-24  6:29 ` [PATCH 2/3] rbd: don't assume RBD_LOCK_STATE_LOCKED for exclusive mappings Ilya Dryomov
2024-07-24  6:29 ` [PATCH 3/3] rbd: don't assume rbd_is_lock_owner() " Ilya Dryomov
2024-07-25  8:45   ` Dongsheng Yang
2024-07-25  9:31     ` Ilya Dryomov
2024-07-25 10:08       ` Dongsheng Yang
2024-07-25 10:22         ` Ilya Dryomov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox