diff options
author | Ming Lei <ming.lei@redhat.com> | 2019-07-24 06:48:39 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-08-05 06:41:29 +0300 |
commit | aa306ab703e9452b1e25cc8e8f04b8df523d0bb8 (patch) | |
tree | 788e30753358ef836231752766f417c9540018cb /include/linux/blk-mq.h | |
parent | e21a712a9685488f5ce80495b37b9fdbe96c230d (diff) | |
download | linux-aa306ab703e9452b1e25cc8e8f04b8df523d0bb8.tar.xz |
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>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 3fa1fa59f9b2..baac2926e54a 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -296,6 +296,7 @@ static inline u16 blk_mq_unique_tag_to_tag(u32 unique_tag) int blk_mq_request_started(struct request *rq); +int blk_mq_request_completed(struct request *rq); void blk_mq_start_request(struct request *rq); void blk_mq_end_request(struct request *rq, blk_status_t error); void __blk_mq_end_request(struct request *rq, blk_status_t error); |