[RFC PATCH 2/7] block: don't merge different kinds of P2P transfers in a single bio

Bart Van Assche bvanassche at acm.org
Thu Oct 31 13:58:37 PDT 2024


On 10/27/24 7:21 AM, Leon Romanovsky wrote:
> +		/*
> +		 * When doing ZONE_DEVICE-based P2P transfers, all pages in a
> +		 * bio must be P2P pages from the same device.
> +		 */
> +		if ((bio->bi_opf & REQ_P2PDMA) &&
> +		    !zone_device_pages_have_same_pgmap(bv->bv_page, page))
> +			return 0;

It's probably too late to change the "zone_device_" prefix into
something that cannot be confused with a reference to zoned block
devices?

Thanks,

Bart.




More information about the Linux-nvme mailing list