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

Jens Axboe
2026-04-10T01:11:20Z

On Thu, 09 Apr 2026 21:30:12 +0800, Ming Lei wrote:
> 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, thanks!

[1/7] ublk: widen ublk_shmem_buf_reg.len to __u64 for 4GB buffer support
commit: 23b3b6f0b584b70a427d5bb826d320151890d7da
[2/7] ublk: verify all pages in multi-page bvec fall within registered range
commit: 211ff1602b67e26125977f8b2f369d7c2847628c
[3/7] ublk: simplify PFN range loop in __ublk_ctrl_reg_buf
commit: 8ea8566a9aeef746699d8c84bed3ac44edbfaa0e
[4/7] ublk: replace xarray with IDA for shmem buffer index allocation
commit: 5e864438e2853ef5112d7905fadcc3877e2be70a
[5/7] ublk: allow buffer registration before device is started
commit: 365ea7cc62447caac508706b429cdf031cc15a9f
[6/7] Documentation: ublk: address review comments for SHMEM_ZC docs
commit: 289653bb76c46149f88939c3cfef55cdb236ace2
[7/7] MAINTAINERS: update ublk driver maintainer email
commit: b774765fb804045ee774476ded8e52482ae5ecb7

Best regards,
--
Jens Axboe