]> 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)
commit28645e80a925bdb144ca646fa82c8c4928700218
tree2d9455ae00ecdf9db16c50cf039addb3f7da552a
parente4739430d740cd86f5f3bf6df84465d5fc4b0900
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