blk-mq: Return true if request was completed
authorKeith Busch <keith.busch@intel.com>
Wed, 14 Nov 2018 16:25:59 +0000 (09:25 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Nov 2018 19:06:55 +0000 (12:06 -0700)
commit3ee4a25231f7e1837efe41474475e44e1dec5f40
treeccb4ca4e9c4dc982b1a0262748ff249cae68b20a
parent94743d5ae79227fc0a9b6d7fa14e80a6dd95baea
blk-mq: Return true if request was completed

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

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