diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2025-11-04 14:27:33 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-11-04 14:35:31 +0000 |
| commit | f999ffdce3813eb946f10999ccffb8275c324469 (patch) | |
| tree | d66f227ae704e3d7258fc5266be43ed9e438adc7 /contrib/file/magic/Magdir/vacuum-cleaner | |
| parent | c46e5dc65ba5c9666bb4452878e332dc49730843 (diff) | |
The access of vq->vq_ring.used->idx needs to be volatile-qualified,
otherwise the compiler may optimize virtqueue_poll() into an infinite
loop if there is no data available upon the first poll.
Prior to commit ad17789a8569 this wasn't a problem since an external
function call after each poll inhibited the optimization.
PR: 289930
MFC after: 3 days
Sponsored by: Klara, Inc.
Fixes: ad17789a8569 ("virtio: Remove the unused poll method")
Diffstat (limited to 'contrib/file/magic/Magdir/vacuum-cleaner')
0 files changed, 0 insertions, 0 deletions
