Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f31a2110 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe
Browse files

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: default avatarKeith Busch <keith.busch@intel.com>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 59a2f3f0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}
	}