Question on Schedule and Preemption
- From: "Liu haixiang" <liu.haixiang@xxxxxxxxx>
- Date: Tue, 18 Apr 2006 15:23:01 +0800
Hi All,
Now I am developing the driver on Linux kernel 2.6.11. And I met the
problem that kernel will dump my stack from time to time. And the
kernel log will give me messages like "scheduling while atomic: ...".
Then I found the code in sched.c:
if (likely(!current->exit_state)) {
if (unlikely(in_atomic())) {
printk(KERN_ERR "scheduling while atomic: "
"%s/0x%08x/%d\n",
current->comm, preempt_count(), current->pid);
dump_stack();
}
}
Anybody can explain above code for me?
Thanks
best regards
Haixiang Liu
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Question on Schedule and Preemption
- From: Andreas Mohr
- Re: Question on Schedule and Preemption
- Prev by Date: Re: [Ext2-devel] Re: [RFC][PATCH 0/2]Extend ext3 filesystem limit from 8TB to 16TB
- Next by Date: Re: [Ext2-devel] Re: [RFC][PATCH 0/2]Extend ext3 filesystem limit from 8TB to 16TB
- Previous by thread: Question on Schedule and Preemption
- Next by thread: Re: Question on Schedule and Preemption
- Index(es):
Relevant Pages
|