diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-03-23 23:02:45 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-24 00:58:41 +0100 |
commit | d2d393099de21eda91c5ec6a05d60e5dee4d5175 (patch) | |
tree | 92f2f5eaed87e35c43d8461a86f618b6f2a28406 /ipc | |
parent | signal: cosmetic, s/from_ancestor_ns/force/ in prepare_signal() paths (diff) | |
download | linux-d2d393099de21eda91c5ec6a05d60e5dee4d5175.tar.xz linux-d2d393099de21eda91c5ec6a05d60e5dee4d5175.zip |
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 <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions