[Virtio-fs] [virtiofsd] MR opened: process_queue_pool: Prevent queue starvation

virtiofs-bot at sinrega.org virtiofs-bot at sinrega.org
Sun Feb 6 17:26:08 UTC 2022


In `process_queue_pool()`, instead of processing the queue until
it's empty, we collect the entries from the queue once and then
process only those entries.  This prevents queues from starve
other queues. Without this commit, `process_queue_pool()` might
never return, preventing all other queues from making progress:
e.g., the REQ queue might prevent the HIPRIO queue from making
progress.
---
https://gitlab.com/virtio-fs/virtiofsd/-/merge_requests/90




More information about the Virtio-fs mailing list