summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2025-09-17 14:30:45 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-02 13:48:37 +0200
commita63e7dcf6a5524569dfb1c666e8fc1b1bb79daa7 (patch)
tree94d49f47840e3523c6561352d826fec5d584ebb1 /include/net/aligned_data.h
parent7de587f87f37e59e42bf7aec587cf5d82c64806f (diff)
vhost-net: flush batched before enabling notifications
commit e430451613c7a27beeadd00d707bcf7ceec6328e upstream. Commit 8c2e6b26ffe2 ("vhost/net: Defer TX queue re-enable until after sendmsg") tries to defer the notification enabling by moving the logic out of the loop after the vhost_tx_batch() when nothing new is spotted. This caused unexpected side effects as the new logic is reused for several other error conditions. A previous patch reverted 8c2e6b26ffe2. Now, bring the performance back up by flushing batched buffers before enabling notifications. Reported-by: Jon Kohler <jon@nutanix.com> Cc: stable@vger.kernel.org Fixes: 8c2e6b26ffe2 ("vhost/net: Defer TX queue re-enable until after sendmsg") Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20250917063045.2042-3-jasowang@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions