diff options
author | Shaohua Li <shli@fb.com> | 2017-08-31 22:09:46 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-01 08:44:34 -0600 |
commit | 40326d8a33d5b70039849d233975b63c733d94a2 (patch) | |
tree | 8fcd492241c391279b3957fed2979c1d70aaa1e5 /drivers/block/loop.h | |
parent | 54bb0ade6627a183c211345761ec46e4bf0048fe (diff) | |
download | linux-40326d8a33d5b70039849d233975b63c733d94a2.tar.bz2 |
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.h | 1 |
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 */ |