]> git.baikalelectronics.ru Git - kernel.git/commit
freezer: do not send signals to kernel threads
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 18 Oct 2007 10:04:46 +0000 (03:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:19 +0000 (14:37 -0700)
commit906003e6e979fec198f7adf44d14cef56eb40175
treebc7ee9762366c3790f0c0c84e8de73487b5ef261
parent4ab75f217f7fc28ff0f43c0b898f1bceec697fa0
freezer: do not send signals to kernel threads

The freezer should not send signals to kernel threads, since that may lead to
subtle problems.  In particular, commit
65b44d4affe38f1cd12da57013849cd79023ffe6 has changed recalc_sigpending_tsk()
so that it doesn't clear TIF_SIGPENDING.  For this reason, if the freezer
continues to send fake signals to kernel threads and the freezing of kernel
threads fails, some of them may be running with TIF_SIGPENDING set forever.

Accordingly, recalc_sigpending_tsk() shouldn't set the task's TIF_SIGPENDING
flag if TIF_FREEZE is set.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/power/freezing-of-tasks.txt
kernel/power/process.c
kernel/signal.c