Patrick McHardy
0621ed2e4e
[NET_SCHED]: Revert "avoid transmit softirq on watchdog wakeup" optimization
...
As noticed by Ranko Zivojnovic <[email protected] >, calling qdisc_run
from the timer handler can result in deadlock:
> CPU#0
>
> qdisc_watchdog() fires and gets dev->queue_lock
> qdisc_run()...qdisc_restart()...
> -> releases dev->queue_lock and enters dev_hard_start_xmit()
>
> CPU#1
>
> tc del qdisc dev ...
> qdisc_graft()...dev_graft_qdisc()...dev_deactivate()...
> -> grabs dev->queue_lock ...
>
> qdisc_reset()...{cbq,hfsc,htb,netem,tbf}_reset()...qdisc_watchdog_cancel()...
> -> hrtimer_cancel() - waiting for the qdisc_watchdog() to exit, while still
> holding dev->queue_lock
>
> CPU#0
>
> dev_hard_start_xmit() returns ...
> -> wants to get dev->queue_lock(!)
>
> DEADLOCK!
The entire optimization is a bit questionable IMO, it moves potentially
large parts of NET_TX_SOFTIRQ work to TIMER_SOFTIRQ/HRTIMER_SOFTIRQ,
which kind of defeats the separation of them.
Signed-off-by: Patrick McHardy <[email protected] >
Acked-by: Ranko Zivojnovic <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2007-07-14 20:49:26 -07:00
..
802
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
8021q
[VLAN]: Fix memset length
2007-07-14 18:56:30 -07:00
appletalk
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
atm
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
ax25
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
bluetooth
[Bluetooth] Add basics to better support and handle eSCO links
2007-07-11 07:35:32 +02:00
bridge
[NETFILTER]: Lower *tables printk severity
2007-07-14 20:46:15 -07:00
core
[NET]: Add ethtool support for NETIF_F_IPV6_CSUM devices.
2007-07-14 19:07:52 -07:00
dccp
[IPV6]: Do not send RH0 anymore.
2007-07-10 22:55:49 -07:00
decnet
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
econet
[SK_BUFF]: Convert skb->tail to sk_buff_data_t
2007-04-25 22:26:28 -07:00
ethernet
[ETH]: Validate address in eth_mac_addr
2007-07-11 19:41:18 -07:00
ieee80211
[PATCH] softmac: use list_for_each_entry
2007-07-08 22:16:37 -04:00
ipv4
[NETFILTER]: nf_conntrack: mark protocols __read_mostly
2007-07-14 20:48:19 -07:00
ipv6
[NETFILTER]: nf_conntrack: mark protocols __read_mostly
2007-07-14 20:48:19 -07:00
ipx
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
irda
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
iucv
[AF_IUCV]: Add lock when updating accept_q
2007-07-14 19:04:25 -07:00
key
xfrm: Add security check before flushing SAD/SPD
2007-06-07 13:42:46 -07:00
lapb
llc
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
mac80211
[PATCH] mac80211: improved 802.11g CTS protection
2007-07-12 16:07:26 -04:00
netfilter
[NETFILTER]: nf_conntrack: UDPLITE support
2007-07-14 20:48:44 -07:00
netlabel
[NetLabel]: consolidate the struct socket/sock handling to just struct sock
2007-06-08 13:33:09 -07:00
netlink
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
netrom
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
packet
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
rfkill
[RFKILL]: fix net/rfkill/rfkill-input.c bug on 64-bit systems
2007-07-14 18:50:15 -07:00
rose
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
rxrpc
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
sched
[NET_SCHED]: Revert "avoid transmit softirq on watchdog wakeup" optimization
2007-07-14 20:49:26 -07:00
sctp
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
sunrpc
Merge git://git.linux-nfs.org/pub/linux/nfs-2.6
2007-07-13 16:46:18 -07:00
tipc
[TIPC]: Optimize stream send routine to avoid fragmentation
2007-07-10 22:06:12 -07:00
unix
[AF_UNIX]: Rewrite garbage collector, fixes race.
2007-07-11 14:22:39 -07:00
wanrouter
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
wireless
[PATCH] cfg80211: Radiotap parser
2007-07-12 16:07:24 -04:00
x25
[NET]: Make all initialized struct seq_operations const.
2007-07-10 23:07:31 -07:00
xfrm
[XFRM] Introduce standalone SAD lookup
2007-07-10 22:16:35 -07:00
compat.c
[NET]: Adding SO_TIMESTAMPNS / SCM_TIMESTAMPNS support
2007-04-25 22:24:21 -07:00
Kconfig
[S390] Kconfig: no wireless on s390.
2007-05-10 15:46:08 +02:00
Makefile
[RXRPC]: Remove Makefile reference to obsolete RXRPC config variable
2007-07-10 22:19:01 -07:00
nonet.c
socket.c
Remove SLAB_CTOR_CONSTRUCTOR
2007-05-17 05:23:04 -07:00
sysctl_net.c
TUNABLE