Files
linux/drivers/net/hyperv
Haiyang Zhang 6d9cfab853 hv_netvsc: fix race that may miss tx queue wakeup
[ Upstream commit 93aa4792c3 ]

When the ring buffer is almost full due to RX completion messages, a
TX packet may reach the "low watermark" and cause the queue stopped.
If the TX completion arrives earlier than queue stopping, the wakeup
may be missed.

This patch moves the check for the last pending packet to cover both
EAGAIN and success cases, so the queue will be reliably waked up when
necessary.

Reported-and-tested-by: Stephan Klein <stephan.klein@wegfinder.at>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-05-31 06:46:09 -07:00
..
2018-03-17 20:10:27 -04:00
2018-03-17 20:10:27 -04:00
2018-03-17 20:10:27 -04:00