Skip to content

Move Exit Connectors

Matt Helsley lkml 1 version New

Get series with b4
b4 am 1136486566.22868.127.camel@stark

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Move Exit Connectorskernel/exit.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/01] Move Exit Connectors
Quoted 15 lines · Andrew Morton
Quoted 14 lines · Matt Helsley
Quoted 13 lines

We need to move both proc_exit_connector(tsk) and cnstats_exit_connector(tsk) up to before exit_mm(tsk) statement. There are task statistics collected in task->mm and those stats will be lost after exit_mm(tsk).

Thanks,
- jay

Quoted 4 lines
	exit_notify(tsk);
#ifdef CONFIG_NUMA
	mpol_free(tsk->mempolicy);

-

Quoted 5 lines
Quoted 3 lines

Good point. The assignment of the task exit code will also have to move
up before exit_mm(tsk) because the process event connector exit function retrieves the exit code from the task struct.

Could someone please volunteer to do the patch?

Here are two separate patches (not a series).

The first simply moves the process event connector north of exit_mm(). It applies to a clean 2.6.15 kernel. Please consider it for -mm.

The second patch moves both -- it's intended to be applied on top of Shailabh's series of patches.

Cheers,
-Matt Helsley