Mike Galbraith wrote:
On Fri, 2006-03-17 at 00:31 +0200, Yitzchak Eidus wrote:
the function worker_thread in kernel 2.6.15.6 first put the task to
TASK_INTERRUPTIBLE and only then add itself to an wait queue:
set_current_state(TASK_INTERRUPTIBLE);
while (!kthread_should_stop()) {
add_wait_queue(&cwq->more_work, &wait);
See dusty old archives...
Also, preempted tasks get rescheduled regardless of state:
http://www.cs.helsinki.fi/linux/linux-kernel/2003-15/0402.html
--Andy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]