summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorweiping zhang <zhangweiping@didichuxing.com>2017-09-30 15:01:48 +0800
committerJens Axboe <axboe@kernel.dk>2017-09-30 02:17:37 -0600
commit547248736ae54b73e713ee259a81ab3a637cb2f7 (patch)
treef3014c0d72cd5f637f301c195a69681f8548170f /block/blk-mq.c
parentb3cffc3877a6c7edf17fd9c476f3e8d930bccec1 (diff)
downloadop-kernel-dev-547248736ae54b73e713ee259a81ab3a637cb2f7.zip
op-kernel-dev-547248736ae54b73e713ee259a81ab3a637cb2f7.tar.gz
blk-mq: remove unused function hctx_allow_merges
since 9bddeb2a5b981 "blk-mq: make per-sw-queue bio merge as default .bio_merge" there is no caller for this function. Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: weiping zhang <zhangweiping@didichuxing.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 98a1860..59687ed 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1504,12 +1504,6 @@ static void blk_mq_bio_to_request(struct request *rq, struct bio *bio)
blk_account_io_start(rq, true);
}
-static inline bool hctx_allow_merges(struct blk_mq_hw_ctx *hctx)
-{
- return (hctx->flags & BLK_MQ_F_SHOULD_MERGE) &&
- !blk_queue_nomerges(hctx->queue);
-}
-
static inline void blk_mq_queue_io(struct blk_mq_hw_ctx *hctx,
struct blk_mq_ctx *ctx,
struct request *rq)
OpenPOWER on IntegriCloud