[PATCH] nvme: fix PI insert on write
Keith Busch
kbusch at kernel.org
Wed Aug 20 07:39:06 PDT 2025
On Wed, Aug 20, 2025 at 10:11:47AM +0200, Christoph Hellwig wrote:
> diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
> index 9707a0e8c431..3bd6ffd1f809 100644
> --- a/drivers/nvme/host/core.c
> +++ b/drivers/nvme/host/core.c
> @@ -1039,6 +1039,7 @@ static inline blk_status_t nvme_setup_rw(struct nvme_ns *ns,
> if (WARN_ON_ONCE(!nvme_ns_has_pi(ns->head)))
> return BLK_STS_NOTSUPP;
> control |= NVME_RW_PRINFO_PRACT;
> + nvme_set_ref_tag(ns, cmnd, req);
> }
Do we need to check that it's type 1 or 2 before setting this?
More information about the Linux-nvme
mailing list