Messages in this thread | | | Date | Tue, 12 Nov 2013 17:26:34 +0100 | From | Oleg Nesterov <> | Subject | Re: [PATCH] ipvs: Remove unused variable ret from sync_thread_master() |
| |
On 11/12, Peter Zijlstra wrote: > > On Tue, Nov 12, 2013 at 02:21:39PM -0000, David Laight wrote: > > > > /* Tell scheduler we are going to sleep... */ > > if (signal_pending(current)) > > /* We don't want waking immediately (again) */ > > sleep_state = TASK_UNINTERRUPTIBLE; > > else > > sleep_state = TASK_INTERRUPTIBLE; > > set_current_state(sleep_state); > > If this is for kernel threads, I think you can wipe the pending state;
Yes, unless this kthread does allow_signal() signal_pending() can't be true.
Oleg.
| |