]> git.baikalelectronics.ru Git - kernel.git/commit
[NETPOLL]: tx lock deadlock fix
authorStephen Hemminger <shemminger@linux.foundation.org>
Wed, 27 Jun 2007 07:39:42 +0000 (00:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2007 07:39:42 +0000 (00:39 -0700)
commit6e330275bd76f2536ccb50c655f837bfaa6da831
tree55d78b37c8fd13ba0f56e3419d4dc3f57856e781
parent16bd6bd95165f40bbe457f9ff0e297e59a50c1af
[NETPOLL]: tx lock deadlock fix

If sky2 device poll routine is called from netpoll_send_skb, it would
deadlock. The netpoll_send_skb held the netif_tx_lock, and the poll
routine could acquire it to clean up skb's. Other drivers might use
same locking model.

The driver is correct, netpoll should not introduce more locking
problems than it causes already. So change the code to drop lock
before calling poll handler.

Signed-off-by: Stephen Hemminger <shemminger@linux.foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c