Re: [PATCH v3] ceph: Use unsigned types for snapshot split counts
From: Alex Markuze
Date: Tue Nov 24 2026 - 06:34:23 EST
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