Commit ac5e8640 authored by Keith Busch's avatar Keith Busch Committed by Greg Kroah-Hartman

nvme: Set integrity flag for user passthrough commands

[ Upstream commit f31a2110 ]

If the command a separate metadata buffer attached, the request needs
to have the integrity flag set so the driver knows to map it.
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b19122a4
...@@ -665,6 +665,7 @@ static int nvme_submit_user_cmd(struct request_queue *q, ...@@ -665,6 +665,7 @@ static int nvme_submit_user_cmd(struct request_queue *q,
ret = PTR_ERR(meta); ret = PTR_ERR(meta);
goto out_unmap; goto out_unmap;
} }
req->cmd_flags |= REQ_INTEGRITY;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment