]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: recycle kbuf recycle on tw requeue
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 6 Sep 2022 16:11:17 +0000 (17:11 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Sep 2022 16:36:10 +0000 (10:36 -0600)
commit592dceee2c00bd8e8b3d73450d6965628a3707fd
tree69597f10bc7f1e1b9a02405f016eede1f4d489f1
parentaa81c7a3ee6adab3e0d9dc0eec044528e6f38488
io_uring: recycle kbuf recycle on tw requeue

When we queue a request via tw for execution it's not going to be
executed immediately, so when io_queue_async() hits IO_APOLL_READY
and queues a tw but doesn't try to recycle/consume the buffer some other
request may try to use the the buffer.

Fixes: e790404d1245 ("io_uring: add support for ring mapped supplied buffers")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a19bc9e211e3184215a58e129b62f440180e9212.1662480490.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c