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)
commit6d63416dc57eb27a3d35e7b7526e9915479d7eff
tree07f221f413e0fcb79b82780a985d6414d7f566c0
parent54daa9b2d80ab35824464b35a99f716e1cdf2ccb
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