From: Mike McCormack Date: Thu, 31 Dec 2009 00:55:31 +0000 (+0000) Subject: sky2: Lock transmit queue while disabling device X-Git-Tag: v2.6.34-rc1~233^2~674 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c36531b9b2e00d9715c3a0f5788ac5311435e078;p=pandora-kernel.git sky2: Lock transmit queue while disabling device netif_device_detach() does not take the tx_lock, so it's possible that a call to sky2_xmit_frame is still in progress after netif_device_detach() is complete. Take netif_tx_lock() to make sure all transmits have stopped while we're disabling the devices and that no other CPU is still transmitting a frame after we've disabling the device. Proposed fix for "sky2 panic under load" reported by Berck E. Nash. Signed-off-by: Mike McCormack Signed-off-by: David S. Miller --- Reading git-diff-tree failed