OSDN Git Service

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)
commit934447a603b22d98f45a679115d8402e1efdd0f7
tree6beef5e7c0e18839d1564e00e61f0e8d074783b2
parentec8516f3b7c40ba7050e6b3a32467e9de451ecdf
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: b66e65f41426 ("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