blk-mq: make per-sw-queue bio merge as default .bio_merge
authorMing Lei <ming.lei@redhat.com>
Fri, 26 May 2017 11:53:20 +0000 (19:53 +0800)
committerJens Axboe <axboe@fb.com>
Fri, 26 May 2017 20:12:04 +0000 (14:12 -0600)
commit9bddeb2a5b981507cbe2d7bdb545c32f204109c7
treec4ec4b6a5ccf0df214f33780375f9fe5afcff12a
parentab42f35d9cb5ac49b5a2a11f940e74f58f207280
blk-mq: make per-sw-queue bio merge as default .bio_merge

Because what the per-sw-queue bio merge does is basically same with
scheduler's .bio_merge(), this patch makes per-sw-queue bio merge
as the default .bio_merge if no scheduler is used or io scheduler
doesn't provide .bio_merge().

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sched.c
block/blk-mq-sched.h
block/blk-mq.c