Re: [PATCH net-next v2 1/3] af_unix: Schedule the garbage collector at task exit

From: Nam Cao

Date: Fri Jul 17 2026 - 02:46:27 EST


Nam Cao <namcao@xxxxxxxxxxxxx> writes:
> @@ -1002,6 +1003,7 @@ void __noreturn do_exit(long code)
> exit_sem(tsk);
> exit_shm(tsk);
> exit_files(tsk);
> + unix_schedule_gc(NULL); /* Must be after exit_files() */

Argh, I just realized that exit_files() is deferred to task work, so
this must be after exit_task_work().

I will send v3 in a few days, if there is no other comment.

Nam