blk-mq: introduce blk_mq_request_completed()
authorMing Lei <ming.lei@redhat.com>
Wed, 24 Jul 2019 03:48:39 +0000 (11:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Aug 2019 03:41:29 +0000 (21:41 -0600)
commitaa306ab703e9452b1e25cc8e8f04b8df523d0bb8
tree788e30753358ef836231752766f417c9540018cb
parente21a712a9685488f5ce80495b37b9fdbe96c230d
blk-mq: introduce blk_mq_request_completed()

NVMe needs this function to decide if one request to be aborted has
been completed in normal IO path already.

So introduce it.

Cc: Max Gurtovoy <maxg@mellanox.com>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk-mq.h