* [PATCH] nvme: Set integrity flag for user passthrough commands
@ 2018-04-17 22:05 Keith Busch
2018-04-17 22:48 ` Martin K. Petersen
2018-04-18 6:35 ` Christoph Hellwig
0 siblings, 2 replies; 3+ messages in thread
From: Keith Busch @ 2018-04-17 22:05 UTC (permalink / raw)
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 at intel.com>
---
drivers/nvme/host/core.c | 1 +
1 file changed, 1 insertion(+)
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;
}
}
--
2.14.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] nvme: Set integrity flag for user passthrough commands
2018-04-17 22:05 [PATCH] nvme: Set integrity flag for user passthrough commands Keith Busch
@ 2018-04-17 22:48 ` Martin K. Petersen
2018-04-18 6:35 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2018-04-17 22:48 UTC (permalink / raw)
Keith,
> If the command a separate metadata buffer attached, the request needs
> to have the integrity flag set so the driver knows to map it.
Yup.
Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] nvme: Set integrity flag for user passthrough commands
2018-04-17 22:05 [PATCH] nvme: Set integrity flag for user passthrough commands Keith Busch
2018-04-17 22:48 ` Martin K. Petersen
@ 2018-04-18 6:35 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2018-04-18 6:35 UTC (permalink / raw)
Looks good,
Reviewed-by: Christoph Hellwig <hch at lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-18 6:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-17 22:05 [PATCH] nvme: Set integrity flag for user passthrough commands Keith Busch
2018-04-17 22:48 ` Martin K. Petersen
2018-04-18 6:35 ` Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.