]> 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)
commitb85d49220dae349ef36845e90bff728e1ff7e78d
tree200391fb33540329622ee38ebeb11cdd1415d39b
parentb2e5687bd7936be5d4689554f1161c382d939507
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