CEPH filesystem development
 help / color / mirror / Atom feed
From: Ilya Dryomov <idryomov@gmail.com>
To: ceph-devel@vger.kernel.org
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn>
Subject: [PATCH 0/3] rbd: exclusive mapping (-o exclusive) fixes
Date: Wed, 24 Jul 2024 08:29:08 +0200	[thread overview]
Message-ID: <20240724062914.667734-1-idryomov@gmail.com> (raw)

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


             reply	other threads:[~2024-07-24  6:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-24  6:29 Ilya Dryomov [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240724062914.667734-1-idryomov@gmail.com \
    --to=idryomov@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dongsheng.yang@easystack.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox