blk-mq: check bio_mergeable() early before merging
authorMing Lei <ming.lei@canonical.com>
Tue, 20 Oct 2015 15:13:54 +0000 (23:13 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 21 Oct 2015 21:00:53 +0000 (15:00 -0600)
commite18378a60e27ad7b3e11ecc4e2c92159585dee68
treedf6e568008eb82c3cc7f1ca6628d1aed56c73b3d
parent6ac45aeb6bcad38a2783a7d6e5da4c469497eeb0
blk-mq: check bio_mergeable() early before merging

It isn't necessary to try to merge the bio which is marked
as NOMERGE.

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c