aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/core.c
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2018-04-17 14:42:44 -0600
committerJens Axboe <axboe@kernel.dk>2018-05-03 09:37:50 -0600
commitf31a21103c03bb62846409fdc60cc9faf2398cfb (patch)
treec2c9ca3ac0a92f007b315af86fda51b9b3058e81 /drivers/nvme/host/core.c
parentnvme: fix potential memory leak in option parsing (diff)
downloadlinux-dev-f31a21103c03bb62846409fdc60cc9faf2398cfb.tar.xz
linux-dev-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 '')
-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;
}
}