From: Keith Busch Date: Tue, 17 Apr 2018 20:42:44 +0000 (-0600) Subject: nvme: Set integrity flag for user passthrough commands X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f31a21103c03bb62846409fdc60cc9faf2398cfb;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Martin K. Petersen Signed-off-by: Jens Axboe --- 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; } }