block/loop: allow request merge for directio mode
authorShaohua Li <shli@fb.com>
Fri, 1 Sep 2017 05:09:46 +0000 (22:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Sep 2017 14:44:34 +0000 (08:44 -0600)
commit40326d8a33d5b70039849d233975b63c733d94a2
tree8fcd492241c391279b3957fed2979c1d70aaa1e5
parent54bb0ade6627a183c211345761ec46e4bf0048fe
block/loop: allow request merge for directio mode

Currently loop disables merge. While it makes sense for buffer IO mode,
directio mode can benefit from request merge. Without merge, loop could
send small size IO to underlayer disk and harm performance.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c
drivers/block/loop.h