blk-mq: Return true if request was completed
authorKeith Busch <keith.busch@intel.com>
Mon, 26 Nov 2018 16:54:28 +0000 (09:54 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Nov 2018 17:34:24 +0000 (10:34 -0700)
commit16c15eb16a793f2d81ae52f41f43fb6831b34212
tree186d56d7aabeff57f4069d2b052894d5ff044584
parent4ab32bf3305eedb4d31f85cac68a67becab10494
blk-mq: Return true if request was completed

A driver may have internal state to cleanup if we're pretending a request
didn't complete. Return 'false' if the command wasn't actually completed
due to the timeout error injection, and true otherwise.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk-mq.h