NVMe: Fix obtaining command result
authorKeith Busch <keith.busch@intel.com>
Fri, 22 May 2015 18:28:31 +0000 (12:28 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 22 May 2015 20:13:32 +0000 (14:13 -0600)
commita0a931d6a2c1fbc5d5966ebf0e7a043748692c22
tree64e312c46a360afa5d0f1633ad880bc1a6d30833
parentd29ec8241c10eacf59c23b3828a88dbae06e7e3f
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>
drivers/block/nvme-core.c