]> git.baikalelectronics.ru Git - kernel.git/commit
vhost_net: Avoid rx vring kicks during busyloop
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Tue, 3 Jul 2018 07:31:34 +0000 (16:31 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 12:30:47 +0000 (21:30 +0900)
commitf05404f37ae40de43c671fa094fa1618464d32a0
tree810c69bece265e17929a7d8848102238b41c36df
parent98862ad2cbd06e2a819f045d8e5da5c42a77a95e
vhost_net: Avoid rx vring kicks during busyloop

We may run out of avail rx ring descriptor under heavy load but busypoll
did not detect it so busypoll may have exited prematurely. Avoid this by
checking rx ring full during busypoll.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c