diff options
| author | Jason Wang <[email protected]> | 2025-09-17 06:30:45 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2025-09-19 08:15:26 +0000 |
| commit | e430451613c7a27beeadd00d707bcf7ceec6328e (patch) | |
| tree | cab83dc6f972207ae909a4ad714709d1eb9d966c /lib/notifier-error-inject.c | |
| parent | Revert "vhost/net: Defer TX queue re-enable until after sendmsg" (diff) | |
| download | kernel-e430451613c7a27beeadd00d707bcf7ceec6328e.tar.gz kernel-e430451613c7a27beeadd00d707bcf7ceec6328e.zip | |
vhost-net: flush batched before enabling notifications
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 <[email protected]>
Cc: [email protected]
Fixes: 8c2e6b26ffe2 ("vhost/net: Defer TX queue re-enable until after sendmsg")
Signed-off-by: Jason Wang <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Message-Id: <[email protected]>
Diffstat (limited to 'lib/notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
