Re: [PATCH v4] ceph: Use unsigned types for snapshot split counts
From: Jerry Jiang
Date: Tue Dec 01 2026 - 23:52:39 EST
Hi Xiubo and Alex,
I've read through both of your suggestions and split my patch into
two. Please let me know what you think and if I am missing anything. I
also would like to ask if Xiubo can provide more detail on the ways
you test my patch, for example code you ran or commands you've used so
I could do more thorough tests so I can create more robust patches. I
appreciate the time and effort Alex and Xiubo have made to help me
improve my patches.
v5 has been proposed:
https://lore.kernel.org/all/20261202045041.130195-1-kj2864@xxxxxxx/
https://lore.kernel.org/all/20261202045041.130195-2-kj2864@xxxxxxx/
On Mon, Nov 30, 2026 at 10:44 AM Alex Markuze <amarkuze@xxxxxxxxxx> wrote:
>
> Hi Kaho,
>
> Please send the unsigned split counts and array bounds checks as a
> standalone fix for stable. Check both the SPLIT and non-SPLIT paths
> without changing the existing snapshot error handling.
>
> Please keep the fencing changes separate. As Xiubo noted, when snap trace
> decoding fails during a cap IMPORT, v4 drops the blocklist attempt but
> still closes sessions from the messenger worker. The new fence worker
> also runs unmount cleanup that can free snapid mappings still held by
> live snapshot inodes.
>
> Thanks,
> Alex
>