io_uring: io_free_req() via tw
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 4 Apr 2023 12:39:48 +0000 (13:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Apr 2023 15:30:39 +0000 (09:30 -0600)
commit03adabe81abb20221079b48343783b4327bd1186
tree1fbf3633fb156ee4cc6f04a0f885cf7ae6a5cd85
parent2ad4c6d08018e4eec130c29992028dc356ab2181
io_uring: io_free_req() via tw

io_free_req() is not often used but nevertheless problematic as there is
no way to know the current context, it may be used from the submission
path or even by an irq handler. Push it to a fresh context using
task_work.

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