Re: [PATCH v3] ceph: Use unsigned types for snapshot split counts
From: Jerry Jiang
Date: Wed Nov 25 2026 - 22:31:13 EST
Hi Alex,
I've looked through your request and created a new patch for it.
Please tell me if any issues arise or any other changes I need to
make.
v4 has been proposed:
https://lore.kernel.org/all/20261126032756.265377-2-kj2864@xxxxxxx/
On Tue, Nov 24, 2026 at 6:34 AM Alex Markuze <amarkuze@xxxxxxxxxx> wrote:
>
> 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
>