diff options
author | Yufen Yu <yuyufen@huawei.com> | 2019-03-24 17:57:07 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-03-24 10:26:16 -0600 |
commit | 13f063815265c5397ee92d84436804bc9fb6b58b (patch) | |
tree | 6928c3c02b772df33b7f971e04f0bc2af6e2dc38 /block/blk-mq.h | |
parent | 1bdd3dbfff7a308643c7f9ef74e4a8ef3923e686 (diff) |
blk-mq: use blk_mq_put_driver_tag() to put tag
Expect arguments, blk_mq_put_driver_tag_hctx() and blk_mq_put_driver_tag()
is same. We can just use argument 'request' to put tag by blk_mq_put_driver_tag().
Then we can remove the unused blk_mq_put_driver_tag_hctx().
Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r-- | block/blk-mq.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h index 0ed8e5a8729f..d704fc7766f4 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -224,15 +224,6 @@ static inline void __blk_mq_put_driver_tag(struct blk_mq_hw_ctx *hctx, } } -static inline void blk_mq_put_driver_tag_hctx(struct blk_mq_hw_ctx *hctx, - struct request *rq) -{ - if (rq->tag == -1 || rq->internal_tag == -1) - return; - - __blk_mq_put_driver_tag(hctx, rq); -} - static inline void blk_mq_put_driver_tag(struct request *rq) { if (rq->tag == -1 || rq->internal_tag == -1) |