diff options
author | Jason Wang <[email protected]> | 2023-07-20 04:38:39 -0400 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2024-03-19 03:19:22 -0400 |
commit | 0d197a14716481626f863d2091f4c328bf5412e3 (patch) | |
tree | 6d62e41a84ddb7f61bc9733cce02e8e4e8397364 /include/linux/fpga/fpga-mgr.h | |
parent | b9f7425239a09903629f71f719654983481b00aa (diff) |
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Shannon Nelson <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions