diff options
author | Jianchao Wang <jianchao.w.wang@oracle.com> | 2018-12-14 04:28:20 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-16 18:33:58 +0300 |
commit | d6a51a97c0b2e21fec224746c2683ff739bcf4ae (patch) | |
tree | d2d6abdac6b04cffaab29532d35e34fd95c1f033 /block/blk-mq.c | |
parent | 5b7a6f128aad761b471ca0ff620b4841b38e596f (diff) | |
download | linux-d6a51a97c0b2e21fec224746c2683ff739bcf4ae.tar.xz |
blk-mq: replace and kill blk_mq_request_issue_directly
Replace blk_mq_request_issue_directly with blk_mq_try_issue_directly
in blk_insert_cloned_request and kill it as nobody uses it any more.
Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 90361fe758f8..2d3a29eb58ca 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1792,7 +1792,7 @@ static blk_status_t __blk_mq_issue_directly(struct blk_mq_hw_ctx *hctx, return ret; } -static blk_status_t blk_mq_try_issue_directly(struct blk_mq_hw_ctx *hctx, +blk_status_t blk_mq_try_issue_directly(struct blk_mq_hw_ctx *hctx, struct request *rq, blk_qc_t *cookie, bool bypass, bool last) @@ -1864,13 +1864,6 @@ out_unlock: return ret; } -blk_status_t blk_mq_request_issue_directly(struct request *rq, bool last) -{ - blk_qc_t unused; - - return blk_mq_try_issue_directly(rq->mq_hctx, rq, &unused, true, last); -} - void blk_mq_try_issue_list_directly(struct blk_mq_hw_ctx *hctx, struct list_head *list) { |