summaryrefslogtreecommitdiff
path: root/drivers/block/loop.h
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-09-01 08:09:46 +0300
committerJens Axboe <axboe@kernel.dk>2017-09-01 17:44:34 +0300
commit40326d8a33d5b70039849d233975b63c733d94a2 (patch)
tree8fcd492241c391279b3957fed2979c1d70aaa1e5 /drivers/block/loop.h
parent54bb0ade6627a183c211345761ec46e4bf0048fe (diff)
downloadlinux-40326d8a33d5b70039849d233975b63c733d94a2.tar.xz
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>
Diffstat (limited to 'drivers/block/loop.h')
-rw-r--r--drivers/block/loop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/loop.h b/drivers/block/loop.h
index efe57189d01e..43d20d37b79a 100644
--- a/drivers/block/loop.h
+++ b/drivers/block/loop.h
@@ -71,6 +71,7 @@ struct loop_cmd {
bool use_aio; /* use AIO interface to handle I/O */
long ret;
struct kiocb iocb;
+ struct bio_vec *bvec;
};
/* Support for loadable transfer modules */