Skip to content
Commit 274a5843 authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: don't allow merges if turned off for the queue



blk-mq uses BLK_MQ_F_SHOULD_MERGE, as set by the driver at init time,
to determine whether it should merge IO or not. However, this could
also be disabled by the admin, if merging is switched off through
sysfs. So check the general queue state as well before attempting
to merge IO.

Reported-by: default avatarRob Elliott <Elliott@hp.com>
Tested-by: default avatarRob Elliott <Elliott@hp.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 8a58d1f1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment