vm-virtio: queue: fix a barrier comment at update_avail_event

The barrier had a comment coming from other context. Adjust it to be
relevant to its own context.

Signed-off-by: Sergio Lopez <slp@redhat.com>
This commit is contained in:
Sergio Lopez 2020-03-10 05:34:40 -04:00 committed by Rob Bradford
parent e0bdfe826e
commit 401e1d2489

View File

@ -543,7 +543,7 @@ impl Queue {
None => warn!("Can't update avail_event"),
}
// This fence ensures all descriptor writes are visible before the index update is.
// This fence ensures the guest sees the value we've just written.
fence(Ordering::Release);
}