summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2018-04-17 22:42:44 +0200
committerJens Axboe <axboe@kernel.dk>2018-05-03 17:37:50 +0200
commitf31a21103c03bb62846409fdc60cc9faf2398cfb (patch)
treec2c9ca3ac0a92f007b315af86fda51b9b3058e81 /drivers/nvme
parentnvme: fix potential memory leak in option parsing (diff)
downloadlinux-f31a21103c03bb62846409fdc60cc9faf2398cfb.tar.xz
linux-f31a21103c03bb62846409fdc60cc9faf2398cfb.zip
nvme: Set integrity flag for user passthrough commands
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>
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 9df4f71e58ca..127a9cbf3314 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -764,6 +764,7 @@ static int nvme_submit_user_cmd(struct request_queue *q,
ret = PTR_ERR(meta);
goto out_unmap;
}
+ req->cmd_flags |= REQ_INTEGRITY;
}
}