]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: do not recycle buffer in READV
authorDylan Yudaken <dylany@fb.com>
Thu, 21 Jul 2022 13:13:25 +0000 (06:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:31:31 +0000 (08:31 -0600)
commit8516757140c189b6042ee1bc3fb9b67d39ad4f55
tree6beef5e7c0e18839d1564e00e61f0e8d074783b2
parent75841dbf5be5bac8ca9d7598d584d24ce0fceb40
io_uring: do not recycle buffer in READV

READV cannot recycle buffers as it would lose some of the data required to
reimport that buffer.

Reported-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Fixes: 0029c288b8c2 ("io_uring: never call io_buffer_select() for a buffer re-select")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220721131325.624788-1-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c