public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Is this a kernel bug?
@ 2012-11-03  8:03 Cyberman Wu
  2012-11-07 16:28 ` Tejun Heo
  0 siblings, 1 reply; 6+ messages in thread
From: Cyberman Wu @ 2012-11-03  8:03 UTC (permalink / raw)
  To: linux-kernel

Recent days we got a exception in kernel thread [kworker/n:m], but
exception handler
call do_group_exit() -> do_exit() -> schedule() and got another
exception in schedule():
			/*
			 * If a worker is going to sleep, notify and
			 * ask workqueue whether it wants to wake up a
			 * task to maintain concurrency.  If so, wake
			 * up the task.
			 */
			if (prev->flags & PF_WQ_WORKER) {
				struct task_struct *to_wakeup;

				to_wakeup = wq_worker_sleeping(prev, cpu);
				if (to_wakeup)
					try_to_wake_up_local(to_wakeup);
			}

Exception occurred while wq_worker_sleeping() -> kthread_data().

It's because do_exit() -> exit_mm() -> mm_release():
	/* notify parent sleeping on vfork() */
	if (vfork_done) {
		tsk->vfork_done = NULL;
		complete(vfork_done);
	}

I'm using a patched version of kernel 2.6.38.8. But I've checked code
of kernel version 3.6.5,
it seems have the same process, only with files and functions split.



-- 
Cyberman Wu

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-12  2:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-03  8:03 Is this a kernel bug? Cyberman Wu
2012-11-07 16:28 ` Tejun Heo
2012-11-09  0:53   ` Cyberman Wu
2012-11-09  1:11     ` Tejun Heo
2012-11-12  2:42       ` Cyberman Wu
2012-11-09  2:07     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox