X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Fkthread.c;h=eb8751aa0418d448f2b46d364074d39bf622ec6b;hb=655c5d8fc110a9d4f90cc831bd009936f3e8df28;hp=9b1a7de26979a7d02abc5f2e68025a5acea0bdfd;hpb=9729a6eb5878a3daa18395f2b5fb38bf9359a761;p=~andy%2Flinux diff --git a/kernel/kthread.c b/kernel/kthread.c index 9b1a7de2697..eb8751aa041 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -180,10 +180,12 @@ EXPORT_SYMBOL(kthread_bind); * @k: thread created by kthread_create(). * * Sets kthread_should_stop() for @k to return true, wakes it, and - * waits for it to exit. Your threadfn() must not call do_exit() - * itself if you use this function! This can also be called after - * kthread_create() instead of calling wake_up_process(): the thread - * will exit without calling threadfn(). + * waits for it to exit. This can also be called after kthread_create() + * instead of calling wake_up_process(): the thread will exit without + * calling threadfn(). + * + * If threadfn() may call do_exit() itself, the caller must ensure + * task_struct can't go away. * * Returns the result of threadfn(), or %-EINTR if wake_up_process() * was never called.