summaryrefslogtreecommitdiff
path: root/drivers/net/Space.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2023-07-20 11:38:39 +0300
committerMichael S. Tsirkin <mst@redhat.com>2024-03-19 10:19:22 +0300
commit0d197a14716481626f863d2091f4c328bf5412e3 (patch)
tree6d62e41a84ddb7f61bc9733cce02e8e4e8397364 /drivers/net/Space.c
parentb9f7425239a09903629f71f719654983481b00aa (diff)
downloadlinux-0d197a14716481626f863d2091f4c328bf5412e3.tar.xz
virtio-net: add cond_resched() to the command waiting loop
Adding cond_resched() to the command waiting loop for a better co-operation with the scheduler. This allows to give CPU a breath to run other task(workqueue) instead of busy looping when preemption is not allowed on a device whose CVQ might be slow. Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20230720083839.481487-3-jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
Diffstat (limited to 'drivers/net/Space.c')
0 files changed, 0 insertions, 0 deletions