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)
commite98e49b2bbf777f91732dc916d7ad33876c663c9
tree200391fb33540329622ee38ebeb11cdd1415d39b
parent316319e82f7342ef327223a23199648bfabeadcd
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