[netdrivers] VLAN patch for natsemi?
Michael Gellman
m.gellman at imperial.ac.uk
Fri Aug 12 17:05:35 PDT 2005
On Fri, 2005-08-12 at 12:47 -0600, Joe Nelson wrote:
> bad: scheduling while atomic!
> [<c0226000>] schedule+0x3c/0x3e6
> [<c013b4ff>] sys_write+0x3b/0x63
> [<c010375a>] work_resched+0x5/0x16
>
In my experience, scheduling while atomic errors occur when you take a
lock, and don't release it properly -- especially something like a
spin_lock_bh w/o an appropriate spin_unlock_bh in an error condition. It
means that you disabled interrupts or the bottom half, and didn't
re-enable them properly.
I would suggest a quick look-through of the network driver as well as
the VLAN code, and check to see if any locks are taken, or bh or irq's
disabled without being properly enabled for all exit conditions.
Hope that helps,
Michael
More information about the netdrivers
mailing list