nvme: Set integrity flag for user passthrough commands
authorKeith Busch <keith.busch@intel.com>
Tue, 17 Apr 2018 20:42:44 +0000 (14:42 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:53 +0000 (04:02 +0900)
commitac5e86401fea34255dcc65f791d927bf8f84673b
treeaf1a9e170134e7dc1e5ac2231caa67d791008a6a
parentb19122a48f01544456f4b4efe423b9aa7c21be6d
nvme: Set integrity flag for user passthrough commands

[ Upstream commit f31a21103c03bb62846409fdc60cc9faf2398cfb ]

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@intel.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/core.c