]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
vhost-net: unbreak busy polling
authorJason Wang <jasowang@redhat.com>
Wed, 17 Sep 2025 06:30:43 +0000 (14:30 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 19 Sep 2025 08:15:26 +0000 (04:15 -0400)
commit90beccb3e1287b8d596c4816530ef54df01aa11f
tree5690a379652d929e71c9ee5c3da3f5c248c7c282
parenta318eb807825d71900e212f5aab3469e86feff8e
vhost-net: unbreak busy polling

Commit 67a873df0c41 ("vhost: basic in order support") pass the number
of used elem to vhost_net_rx_peek_head_len() to make sure it can
signal the used correctly before trying to do busy polling. But it
forgets to clear the count, this would cause the count run out of sync
with handle_rx() and break the busy polling.

Fixing this by passing the pointer of the count and clearing it after
the signaling the used.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 67a873df0c41 ("vhost: basic in order support")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20250917063045.2042-1-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c