From: Alex Markuze <amarkuze@redhat.com>
To: Kaho Jiang <kj2864@nyu.edu>
Cc: Ilya Dryomov <idryomov@gmail.com>, Xiubo Li <xiubo.li@clyso.com>,
Viacheslav Dubeyko <slava@dubeyko.com>,
ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, co+408fcc361565713f@bugs.sh
Subject: Re: [PATCH v3] ceph: Use unsigned types for snapshot split counts
Date: Tue, 24 Nov 2026 11:34:12 +0000 [thread overview]
Message-ID: <20261124113412.2078323-1-amarkuze@redhat.com> (raw)
In-Reply-To: <20261123050440.223436-2-kj2864@nyu.edu>
Hi Kaho,
On a malformed SPLIT, the failure path calls ceph_monc_blocklist_add()
with snap_rwsem held. If the blocklist command succeeds but the subsequent
OSD map version or map does not arrive, cached snapshot lookups can remain
blocked on that lock.
After the blocklist call returns, ceph_mdsc_close_sessions() can queue a
close request and wait for it from the MDS connection worker that is
running this handler. The worker cannot send the request or process its
reply until the handler returns, so with mount_timeout=0 the wait can be
indefinite.
Please move the blocklist/map and session-close waits out of the MDS
connection worker, and avoid holding snap_rwsem while waiting. Keep the
client fenced, prevent further stale-context submissions and account for
writes already on the wire before releasing session authority; retain the
required references until the deferred cleanup finishes.
Thanks,
Alex
prev parent reply other threads:[~2026-11-24 11:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 5:04 Kaho Jiang
2026-11-24 11:34 ` Alex Markuze [this message]
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=20261124113412.2078323-1-amarkuze@redhat.com \
--to=amarkuze@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=co+408fcc361565713f@bugs.sh \
--cc=idryomov@gmail.com \
--cc=kj2864@nyu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=slava@dubeyko.com \
--cc=stable@vger.kernel.org \
--cc=xiubo.li@clyso.com \
/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
all inboxes | Powered by JetHome®