[PATCH v2] nvme: fix PI insert on write
Keith Busch
kbusch at kernel.org
Mon Aug 25 07:01:14 PDT 2025
On Mon, Aug 25, 2025 at 03:32:49PM +0200, Christoph Hellwig wrote:
>
> So we need to set ILBRT field, but we currently don't. Interestingly
> this works fine on my older type 1 formatted SSD, but Qemu trips up on
> this. We already set ILBRT for Write Same since commit aeb7bb061be5
> ("nvme: set the PRACT bit when using Write Zeroes with T10 PI").
>
> To ease this, move the PI type check into nvme_set_ref_tag.
Looks good
Reviewed-by: Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list