Re: [PATCH 0/7] ublk: followup fixes for SHMEM_ZC

Jens Axboe
2026-04-10T01:12:14Z

On 4/9/26 7:30 AM, Ming Lei wrote:
> Hello Jens,
>
> Followup fixes for the SHMEM_ZC (shared memory zero copy) patch series,
> addressing review feedback from Caleb Sander Mateos.
>
> - Widen ublk_shmem_buf_reg.len to __u64 so 4GB buffers can be registered
> (the __u32 field overflowed to 0 for exactly 4GB)
> - Verify all pages in multi-page bvecs fall within the registered maple
> tree range, removing base_pfn from ublk_buf_range since mas.index
> provides the range start PFN
> - Simplify the PFN range coalescing loop in __ublk_ctrl_reg_buf
> - Replace xarray with IDA for buffer index allocation, removing the
> unnecessary struct ublk_buf
> - Allow buffer registration before device is started by taking ub->mutex
> before freezing the queue (same ordering as ublk_stop_dev_unlocked)
> - Address documentation review comments
> - Update MAINTAINERS email

Applied, but I'm unsure what base you used, I'm guessing your old base
rather than my for-7.1/block which already had fixups for the issues I
mentioned? In any case, just ensure that future updates are against the
actual tree, not on top of your previous tree.

--
Jens Axboe