From: Ross Lagerwall Date: Tue, 4 Aug 2015 14:40:59 +0000 (+0100) Subject: xen/netback: Wake dealloc thread after completing zerocopy work X-Git-Tag: omap-for-v4.3/fixes-merge-window~107^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57b229063ae6dc65036209018dc7f4290cc026bb;p=pandora-kernel.git xen/netback: Wake dealloc thread after completing zerocopy work 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed