mbox series

[0/3] rbd: exclusive mapping (-o exclusive) fixes

Message ID 20240724062914.667734-1-idryomov@gmail.com (mailing list archive)
Headers show
Series rbd: exclusive mapping (-o exclusive) fixes | expand

Message

Ilya Dryomov July 24, 2024, 6:29 a.m. UTC
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(-)