diff options
author | Jason Wang <jasowang@redhat.com> | 2023-07-20 11:38:39 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-03-19 10:19:22 +0300 |
commit | 0d197a14716481626f863d2091f4c328bf5412e3 (patch) | |
tree | 6d62e41a84ddb7f61bc9733cce02e8e4e8397364 /drivers/net/Space.c | |
parent | b9f7425239a09903629f71f719654983481b00aa (diff) | |
download | linux-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