]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: IORING_OP_WRITE needs hash_reg_file set
authorJens Axboe <axboe@kernel.dk>
Tue, 31 Aug 2021 01:37:41 +0000 (19:37 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 31 Aug 2021 17:45:30 +0000 (11:45 -0600)
commita9d3ca6c9bef437c8c1aec52ae682fb2a64e7500
treef758c94f0b7b3d6b02299d62f8e690fd99e12e88
parent35c2e32fe4fa3e55b21ed19f611811e0e961efdd
io_uring: IORING_OP_WRITE needs hash_reg_file set

During some testing, it became evident that using IORING_OP_WRITE doesn't
hash buffered writes like the other writes commands do. That's simply
an oversight, and can cause performance regressions when doing buffered
writes with this command.

Correct that and add the flag, so that buffered writes are correctly
hashed when using the non-iovec based write command.

Cc: stable@vger.kernel.org
Fixes: e8b5cf20991d ("io_uring: add non-vectored read/write commands")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c