Re: [BUG] Oopsen with pcmcia aironet wireless (2.5.47)

Andrew Morton (akpm@digeo.com)
Mon, 11 Nov 2002 20:13:40 -0800


Andrew McGregor wrote:
>
> I see lots of oopsen when I insert an Aironet PC4800 802.11 card.

They are debug warnings, not oopses.

> ...
> Nov 12 15:40:39 localhost kernel: end_request: I/O error, dev hdb, sector 0
> Nov 12 15:40:39 localhost last message repeated 3 times
> Nov 12 15:40:39 localhost kernel: end_request: I/O error, dev hdc, sector 0
> Nov 12 15:40:39 localhost last message repeated 2 times

hm. IDE sick?

> Nov 12 15:40:39 localhost kernel: Debug: sleeping function called from
> illegal context at include/asm/semaphore.h:145
> Nov 12 15:40:39 localhost kernel: Call Trace:
> Nov 12 15:40:39 localhost kernel: [<e1a59215>] PC4500_readrid+0x55/0x160

airo_get_stats is called under the read_lock(&dev_base_lock); which was
taken in dev_get_info. So it may not call sleeping functions (ie:
down_interruptible()).

It would appear that no netdevice->get_stats() method is allowed to sleep,
which seems pretty dumb, IMVHO.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/