Messages in this thread | | | Date | Sun, 4 Mar 2007 10:04:31 +0530 | From | Srivatsa Vaddagiri <> | Subject | Re: [PATCH -mm 3/7] Freezer: Remove PF_NOFREEZE from rcutorture thread |
| |
On Sat, Mar 03, 2007 at 08:32:40PM +0300, Oleg Nesterov wrote: > I personally think we should do the opposite, add kthread_should_stop_check_freeze() > or something. kthread_should_stop() is like signal_pending(), we can use > it under spin_lock (and it is probably used this way by some out-of-tree > driver). The new helper is obviously "might_sleep()".
Yes, I agree. It helps the caller explicitly know that this function -can- freeze.
-- Regards, vatsa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |