1
linux/drivers/net/usb
Larry Finger 4ff61c8f7b kaweth: Fix locking to be SMP-safe
On an SMP system, the following message is printed. The patch below gets
fixes the problem.

=================================
[ INFO: inconsistent lock state ]
2.6.29-Linus-05093-gc31f403 #57
---------------------------------
inconsistent {hardirq-on-W} -> {in-hardirq-W} usage.
bash/4105 [HC1[1]:SC0[0]:HE0:SE1] takes:
 (&kaweth->device_lock){+...}, at: [<ffffffffa01aa286>]
                 kaweth_usb_receive+0x77/0x1af [kaw eth]
{hardirq-on-W} state was registered at:
  [<ffffffff80260503>] __lock_acquire+0x753/0x1685
  [<ffffffff8026148a>] lock_acquire+0x55/0x71
  [<ffffffff80461ba6>] _spin_lock+0x31/0x3d
  [<ffffffffa01aaa0c>] kaweth_start_xmit+0x2b/0x1e1 [kaweth]
  [<ffffffff803eccd3>] dev_hard_start_xmit+0x22e/0x2ad
  [<ffffffff803fe120>] __qdisc_run+0xf2/0x203
  [<ffffffff803ed0cd>] dev_queue_xmit+0x263/0x39b
  [<ffffffffa03a47cb>] packet_sendmsg_spkt+0x1c4/0x20a [af_packet]
  [<ffffffff803de0c2>] sock_sendmsg+0xe4/0xfd
  [<ffffffff803dec8f>] sys_sendto+0xe4/0x10c
  [<ffffffff8020bccb>] system_call_fastpath+0x16/0x1b
  [<ffffffffffffffff>] 0xffffffffffffffff
irq event stamp: 1280
hardirqs last  enabled at (1279): [<ffffffff80461a71>]
                  _spin_unlock_irqrestore+0x44/0x4c
hardirqs last disabled at (1280): [<ffffffff8020bad7>]
                  save_args+0x67/0x70
softirqs last  enabled at (660): [<ffffffff8024192c>]
                  __do_softirq+0x14d/0x15d
softirqs last disabled at (651): [<ffffffff8020ce9c>]
                  call_softirq+0x1c/0x28

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-04-02 01:09:43 -07:00
..
asix.c usbnet: convert asix driver to net_device_ops 2009-03-21 19:41:02 -07:00
catc.c usbnet: convert catc device to net_device_ops 2009-03-21 19:40:58 -07:00
cdc_ether.c cdc_ether: add usb id for Ericsson F3507g 2009-03-01 20:44:21 -08:00
cdc_subset.c
dm9601.c usbnet: convert dms9601 driver to net_device_ops 2009-03-21 19:55:33 -07:00
gl620a.c
hso.c usbnet: convert hso driver to net_device_ops 2009-03-21 19:41:00 -07:00
kaweth.c kaweth: Fix locking to be SMP-safe 2009-04-02 01:09:43 -07:00
Kconfig net: Add SMSC LAN9500 USB2.0 10/100 ethernet adapter driver 2008-10-08 16:44:18 -07:00
Makefile drivers/net/usb/Makefile - shrink logspam 2008-10-08 17:07:40 -07:00
mcs7830.c usbnet: convert msc7830 driver to net_device_ops 2009-03-21 19:55:33 -07:00
net1080.c
pegasus.c net: convert pegasus driver to net_device_ops 2009-01-08 11:22:25 -08:00
pegasus.h
plusb.c
rndis_host.c usbnet: convert rndis driver to net_device_ops 2009-03-21 19:55:35 -07:00
rtl8150.c usbnet: convert rtl driver to net_device_ops 2009-03-21 19:41:00 -07:00
smsc95xx.c usbnet: convert smsc95xx driver to net_device_ops 2009-03-21 19:55:34 -07:00
smsc95xx.h net: Add SMSC LAN9500 USB2.0 10/100 ethernet adapter driver 2008-10-08 16:44:18 -07:00
usbnet.c usbnet: support net_device_ops 2009-03-21 19:41:01 -07:00
zaurus.c zaurus: add usb id for motomagx phones 2009-03-01 20:48:08 -08:00