Re: [PATCH v2 0/2] block: fix pgmap handling for zone device pages in bio merge paths

From: Jens Axboe

Date: Fri Apr 17 2026 - 16:40:44 EST



On Fri, 10 Apr 2026 15:34:12 +0000, Naman Jain wrote:
> When zone device memory is registered in multiple chunks, each chunk
> gets its own dev_pagemap. A single bio can contain bvecs from different
> pgmaps -- iov_iter_extract_bvecs() breaks at pgmap boundaries but the
> outer loop in bio_iov_iter_get_pages() continues filling the same bio.
>
> There are two problems with the current code:
>
> [...]

Applied, thanks!

[1/2] block: add pgmap check to biovec_phys_mergeable
commit: 13920e4b7b784b40cf4519ff1f0f3e513476a499
[2/2] block: relax pgmap check in bio_add_page for compatible zone device pages
commit: 41c665aae2b5dbecddddcc8ace344caf630cc7a4

Best regards,
--
Jens Axboe