]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: Enable sysfs nomerge control for I/O requests in the plug list
authorAlireza Haghdoost <alireza@cs.umn.edu>
Wed, 23 Oct 2013 16:08:16 +0000 (17:08 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Oct 2013 16:08:16 +0000 (17:08 +0100)
commitdfc302d833c46f40b5f775099da00bb0cf0e81ad
tree48f1651ac41a02821625c41b87be982456d5646f
parent45e899d95e7b8c63c8f83cb9942c5df967ee8357
block: Enable sysfs nomerge control for I/O requests in the plug list

This patch enables the sysfs to control I/O request merge
functionality in the plug list. While this control has been
implemented for the request queue, it was dismissed in the plug list.
Therefore, block layer merges requests together (or attempt to merge)
even if the merge capability was disable using sysfs nomerge parameter
value 2.

This limitation is directly affects functionality of io_submit()
system call. The system call enables user to submit a bunch of IO
requests from user space using struct iocb **ios input argument.
However, the unconditioned merging functionality in the plug list
potentially merges these requests together down the road. Therefore,
there is no way to distinguish between an application sending bunch of
sequential IOs and an application sending one big IO. Ultimately, all
requests generated by the former app merge within the plug list
together and looks similar to the second app.

While the merging functionality is a desirable feature to improve the
performance of IO subsystem for some applications, it is not useful
for other application like ours at all.

Signed-off-by: Alireza Haghdoost <alireza@cs.umn.edu>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Coding style modified.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c