]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: extend task put optimisations
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 18 Aug 2021 16:01:43 +0000 (17:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:46 +0000 (13:10 -0600)
commit8a07a7e4e177166af7f0e07a21eee285e63db6b3
tree200391fb33540329622ee38ebeb11cdd1415d39b
parentc5677d3748c74212805e33de0e1ab1b9861266ff
io_uring: extend task put optimisations

Now with IRQ completions done via IRQ, almost all requests freeing
are done from the context of submitter task, so it makes sense to
extend task_put optimisation from io_req_free_batch_finish() to cover
all the cases including task_work by moving it into io_put_task().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/824a7cbd745ddeee4a0f3ff85c558a24fd005872.1629302453.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c