2 ms·
The do_exit() function in kernel/exit.c is responsible for general cleanup on a process [1]. Whether a process dies gracefully or abruptly, the kernel calls do
by ww520 5y ago
The do_exit() function in kernel/exit.c is responsible for general cleanup on a process [1]. Whether a process dies gracefully or abruptly, the kernel calls do_exit() to clean up all the resources owned by the process, like opened files or acquired locks. I would imagine the io_uring related stuff is cleaned up there as well.
[1] https://elixir.bootlin.com/linux/v5.13-rc6/source/kernel/exit.c https://elixir.bootlin.com/linux/v5.13-rc6/source/kernel/exi...
Edit: I just looked up at the latest version of the source [1]. Yes, it does clean up io_uring related files.