nvme: Set integrity flag for user passthrough commands
PATCH 1/1 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 at intel.com>
--- drivers/nvme/host/core.c | 1 + 1 file changed, 1 insertion(+)
drivers/nvme/host/core.c +1 -0
@@ -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 ; } }
Signature · 1 line
2.14.3
PATCH 1/1 nvme: Set integrity flag for user passthrough commands
Keith,
Quoted 2 lines
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>
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Christoph Hellwig
maintainerPATCH 1/1 nvme: Set integrity flag for user passthrough commands
In reply to Keith BuschLooks good,
Reviewed-by Christoph Hellwig <hch at lst.de>