summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2018-04-17 14:42:44 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-21 04:02:53 +0900
commitac5e86401fea34255dcc65f791d927bf8f84673b (patch)
treeaf1a9e170134e7dc1e5ac2231caa67d791008a6a /drivers/nvme
parentb19122a48f01544456f4b4efe423b9aa7c21be6d (diff)
downloadlinux-stable-ac5e86401fea34255dcc65f791d927bf8f84673b.tar.gz
linux-stable-ac5e86401fea34255dcc65f791d927bf8f84673b.tar.bz2
linux-stable-ac5e86401fea34255dcc65f791d927bf8f84673b.zip
nvme: Set integrity flag for user passthrough commands
[ Upstream commit f31a21103c03bb62846409fdc60cc9faf2398cfb ] 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: Keith Busch <keith.busch@intel.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index dd956311a85a..38c128f230e7 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -665,6 +665,7 @@ static int nvme_submit_user_cmd(struct request_queue *q,
ret = PTR_ERR(meta);
goto out_unmap;
}
+ req->cmd_flags |= REQ_INTEGRITY;
}
}