diff --git a/[refs] b/[refs] index 2539647535ab..d0d43b47e66e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 49b12d4f5e274517b8bc032d507abf31cc2f4150 +refs/heads/master: a076e4bca2fdabb9e45d86722cc72c0944da5f94 diff --git a/trunk/kernel/kthread.c b/trunk/kernel/kthread.c index df8a8e8f6ca4..bbd51b81a3e8 100644 --- a/trunk/kernel/kthread.c +++ b/trunk/kernel/kthread.c @@ -70,7 +70,7 @@ static int kthread(void *_create) data = create->data; /* OK, tell user we're spawned, wait for stop or wakeup */ - __set_current_state(TASK_INTERRUPTIBLE); + __set_current_state(TASK_UNINTERRUPTIBLE); complete(&create->started); schedule(); @@ -162,7 +162,10 @@ EXPORT_SYMBOL(kthread_create); */ void kthread_bind(struct task_struct *k, unsigned int cpu) { - BUG_ON(k->state != TASK_INTERRUPTIBLE); + if (k->state != TASK_UNINTERRUPTIBLE) { + WARN_ON(1); + return; + } /* Must have done schedule() in kthread() before we set_task_cpu */ wait_task_inactive(k); set_task_cpu(k, cpu);