diff options
author | Keith Busch <keith.busch@intel.com> | 2018-04-17 14:42:44 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-03 09:37:50 -0600 |
commit | f31a21103c03bb62846409fdc60cc9faf2398cfb (patch) | |
tree | c2c9ca3ac0a92f007b315af86fda51b9b3058e81 /drivers/nvme/host/core.c | |
parent | 59a2f3f00fd744dbad22593f47552037d3154ca6 (diff) | |
download | blackbird-op-linux-f31a21103c03bb62846409fdc60cc9faf2398cfb.tar.gz blackbird-op-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/host/core.c')
-rw-r--r-- | drivers/nvme/host/core.c | 1 |
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; } } |