I guess you will re-submit these patches soon. May I suggest you to put
this
and this
into the separate patch?
Perhaps I am too paranoid, and most probably this change is good, but
still I'm afraid this very subtle change may break things. In that case
it would be easy to revert that only part (for example for the testing
purposes).
Consider,
current->flags |= PF_NOFREEZE;
while (!kthread_should_stop()) {
begin_something();
// I am a kernel thread, all signals are ignored.
// I don't want to contribute to loadavg, so I am
// waiting for the absoulutely critical event in
// TASK__INTERRUPTIBLE state.
if (wait_event_interruptible(condition))
panic("Impossible!");
commit_something();
}
Oleg.
-