summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2019-11-13 20:27:21 +0300
committerJens Axboe <axboe@kernel.dk>2019-11-13 22:50:38 +0300
commitcb711b91a3c685192f2cabd3735ca3de04694ed8 (patch)
tree9a12f8ff9e9c908b8e07352d29df592b91444661 /block/blk-mq.c
parent6952a7f8446ee85ea9d10ab87b64797a031eaae3 (diff)
downloadlinux-cb711b91a3c685192f2cabd3735ca3de04694ed8.tar.xz
blk-mq: Delete blk_mq_has_free_tags() and blk_mq_can_queue()
These functions are not referenced, so delete them. Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 5c9adcaa27ac..323c9cb28066 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -260,12 +260,6 @@ void blk_mq_wake_waiters(struct request_queue *q)
blk_mq_tag_wakeup_all(hctx->tags, true);
}
-bool blk_mq_can_queue(struct blk_mq_hw_ctx *hctx)
-{
- return blk_mq_has_free_tags(hctx->tags);
-}
-EXPORT_SYMBOL(blk_mq_can_queue);
-
/*
* Only need start/end time stamping if we have iostat or
* blk stats enabled, or using an IO scheduler.