Skip to contentSkip to conversation

nvme: Set integrity flag for user passthrough commands

PATCH New Keith Busch 3 participants 3 messages Apr 17, 2018 – Apr 18, 2018 NVMe

lore
Share & tools
lore
#0 lore raw

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
index 9df4f71e58ca..127a9cbf3314 100644
@@ -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
#1 lore raw

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