https://github.com/torvalds/linux
Revision 0db3dc73f7a3a73b0dc725b6a991253f5652c905 authored by Stephen Hemminger on 27 June 2007, 07:39:42 UTC, committed by David S. Miller on 27 June 2007, 07:39:42 UTC
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>
1 parent 48d8d7e
History
Tip revision: 0db3dc73f7a3a73b0dc725b6a991253f5652c905 authored by Stephen Hemminger on 27 June 2007, 07:39:42 UTC
[NETPOLL]: tx lock deadlock fix
Tip revision: 0db3dc7
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 572 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 89.3 KB
Kbuild -rw-r--r-- 1.5 KB
MAINTAINERS -rw-r--r-- 87.8 KB
Makefile -rw-r--r-- 49.2 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top