]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: do ctx initiated file note removal
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 6 Mar 2021 11:02:13 +0000 (11:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Mar 2021 21:12:43 +0000 (14:12 -0700)
commit55a9ccd9a17620beceacccdf306f957aae97eb3d
tree2d9455ae00ecdf9db16c50cf039addb3f7da552a
parent6ddcda3c3c91a9c8757c7309a0d3d8a83c553f8b
io_uring: do ctx initiated file note removal

Another preparation patch. When full quiesce is done on ctx exit, use
task_work infra to remove corresponding to the ctx io_uring->xa entries.
For that we use the back tctx map. Also use ->in_idle to prevent
removing it while we traversing ->xa on cancellation, just ignore it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c