https://github.com/torvalds/linux
Revision 57b229063ae6dc65036209018dc7f4290cc026bb authored by Ross Lagerwall on 04 August 2015, 14:40:59 UTC, committed by David S. Miller on 07 August 2015, 06:42:48 UTC
Waking the dealloc thread before decrementing inflight_packets is racy
because it means the thread may go to sleep before inflight_packets is
decremented. If kthread_stop() has already been called, the dealloc
thread may wait forever with nothing to wake it. Instead, wake the
thread only after decrementing inflight_packets.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a0a2a66
History
Tip revision: 57b229063ae6dc65036209018dc7f4290cc026bb authored by Ross Lagerwall on 04 August 2015, 14:40:59 UTC
xen/netback: Wake dealloc thread after completing zerocopy work
Tip revision: 57b2290
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.3 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.7 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 313.5 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top