Skip to content
Snippets Groups Projects
Commit 07931698 authored by Fam Zheng's avatar Fam Zheng Committed by Michael S. Tsirkin
Browse files

virtio: Report real progress in VQ aio poll handler


In virtio_queue_host_notifier_aio_poll, not all "!virtio_queue_empty()"
cases are making true progress.

Currently the offending one is virtio-scsi event queue, whose handler
does nothing if no event is pending. As a result aio_poll() will spin on
the "non-empty" VQ and take 100% host CPU.

Fix this by reporting actual progress from virtio queue aio handlers.

Reported-by: default avatarEd Swierk <eswierk@skyportsystems.com>
Signed-off-by: default avatarFam Zheng <famz@redhat.com>
Tested-by: default avatarEd Swierk <eswierk@skyportsystems.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 4bb571d8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment