]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: optimise plugging
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 6 Oct 2021 15:06:46 +0000 (16:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:55 +0000 (05:49 -0600)
commitf5cc0cad9885a8e73ab71e3f89d907b3d3d68133
tree07f221f413e0fcb79b82780a985d6414d7f566c0
parenteda1c277403077b41ab2d2698029848efaf5f1da
io_uring: optimise plugging

Plugging is only needed with requests that also need a file, so hide
plugging under a ->needs_file check. Also, place ->needs_file and ->plug
bits into the same byte of io_op_defs, it may matter for compilers, e.g.
only with the change a tested one decided to optimise two memory testb
into a more with two register testb.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1600d1287bb7d16451d4ef3343252787a5314927.1633532552.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c