]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Fix obtaining command result
authorKeith Busch <keith.busch@intel.com>
Fri, 22 May 2015 18:28:31 +0000 (12:28 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Aug 2016 21:15:17 +0000 (14:15 -0700)
commit59bbb603acbf9bdc54e0d23fb66070ec5804a44a
tree5e18e69a565c45ecf77cd383f1ee0bfb613117a8
parent42bc4310eb8464f94cd7361ca8bf582f54f96aa4
NVMe: Fix obtaining command result

Replaces req->sense_len usage, which is not owned by the LLD, to
req->special to contain the command result for driver created commands,
and sets the result unconditionally on completion.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jens Axboe <axboe@fb.com>
Fixes: d29ec8241c10 ("nvme: submit internal commands through the block layer")
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit a0a931d6a2c1fbc5d5966ebf0e7a043748692c22 and
added missing pieces from d29ec8241c10eacf59c23b3828a88dbae06e7e3f
backport)
Orabug: 24532912
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c