From: Larry Finger Date: Thu, 2 Apr 2009 08:09:43 +0000 (-0700) Subject: kaweth: Fix locking to be SMP-safe X-Git-Tag: v2.6.30-rc1~246^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ff61c8f7b5e1e60620a04a64ac0715c0822fdac;p=pandora-kernel.git 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: [] kaweth_usb_receive+0x77/0x1af [kaw eth] {hardirq-on-W} state was registered at: [] __lock_acquire+0x753/0x1685 [] lock_acquire+0x55/0x71 [] _spin_lock+0x31/0x3d [] kaweth_start_xmit+0x2b/0x1e1 [kaweth] [] dev_hard_start_xmit+0x22e/0x2ad [] __qdisc_run+0xf2/0x203 [] dev_queue_xmit+0x263/0x39b [] packet_sendmsg_spkt+0x1c4/0x20a [af_packet] [] sock_sendmsg+0xe4/0xfd [] sys_sendto+0xe4/0x10c [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff irq event stamp: 1280 hardirqs last enabled at (1279): [] _spin_unlock_irqrestore+0x44/0x4c hardirqs last disabled at (1280): [] save_args+0x67/0x70 softirqs last enabled at (660): [] __do_softirq+0x14d/0x15d softirqs last disabled at (651): [] call_softirq+0x1c/0x28 Signed-off-by: Larry Finger Signed-off-by: David S. Miller --- Reading git-diff-tree failed