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)
commitd56d938b4bef3e1421a42023cdcd6e13c1f50831
tree2d9455ae00ecdf9db16c50cf039addb3f7da552a
parent13bf43f5f4739739751c0049a1582610c283bdde
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