X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fkthread.c;h=eb8751aa0418d448f2b46d364074d39bf622ec6b;hb=4c5d502d8b2db8947c44dc44bdc67dbe55cce2b9;hp=9b1a7de26979a7d02abc5f2e68025a5acea0bdfd;hpb=1053414068bad659479e6efa62a67403b8b1ec0a;p=karo-tx-linux.git diff --git a/kernel/kthread.c b/kernel/kthread.c index 9b1a7de26979..eb8751aa0418 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.