diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2018-12-14 20:06:06 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-18 17:50:47 +0100 |
commit | 7b7ab780a048699d2b9f416bf2d5c089d8d1028c (patch) | |
tree | f0bed21ab970400a453daa63ee4d44e5c170246d /block/blk-mq.c | |
parent | nvme-tcp: fix spelling mistake "attepmpt" -> "attempt" (diff) | |
download | linux-7b7ab780a048699d2b9f416bf2d5c089d8d1028c.tar.xz linux-7b7ab780a048699d2b9f416bf2d5c089d8d1028c.zip |
block: make request_to_qc_t public
block consumers will need it for polling requests that
are sent with blk_execute_rq_nowait. Also, get rid of
blk_tag_to_qc_t and open-code it instead.
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 2de972857496..3ba37b9e15e9 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1749,14 +1749,6 @@ static void blk_mq_bio_to_request(struct request *rq, struct bio *bio) blk_account_io_start(rq, true); } -static blk_qc_t request_to_qc_t(struct blk_mq_hw_ctx *hctx, struct request *rq) -{ - if (rq->tag != -1) - return blk_tag_to_qc_t(rq->tag, hctx->queue_num, false); - - return blk_tag_to_qc_t(rq->internal_tag, hctx->queue_num, true); -} - static blk_status_t __blk_mq_issue_directly(struct blk_mq_hw_ctx *hctx, struct request *rq, blk_qc_t *cookie, bool last) |