]> Git Repo - linux.git/commit
signal: oom_kill_task: use SEND_SIG_FORCED instead of force_sig()
authorOleg Nesterov <[email protected]>
Fri, 23 Mar 2012 22:02:45 +0000 (15:02 -0700)
committerLinus Torvalds <[email protected]>
Fri, 23 Mar 2012 23:58:41 +0000 (16:58 -0700)
commitd2d393099de21eda91c5ec6a05d60e5dee4d5175
tree92f2f5eaed87e35c43d8461a86f618b6f2a28406
parentdef8cf72562e17ec8316ce0cb5697c7afd6400e3
signal: oom_kill_task: use SEND_SIG_FORCED instead of force_sig()

Change oom_kill_task() to use do_send_sig_info(SEND_SIG_FORCED) instead
of force_sig(SIGKILL).  With the recent changes we do not need force_ to
kill the CLONE_NEWPID tasks.

And this is more correct.  force_sig() can race with the exiting thread
even if oom_kill_task() checks p->mm != NULL, while
do_send_sig_info(group => true) kille the whole process.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Anton Vorontsov <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/oom_kill.c
This page took 0.052996 seconds and 4 git commands to generate.