> virtio_reset_device says: > Note: this guarantees that vq callbacks are not in progress > but in practice, only virtio pci correctly synchronizes the cbs. > > On other transports, a callback that is already executing, keeps running > while the driver tears down the state it uses. > > Add virtio_synchronize_cbs to virtio_reset_device fixing this for all > transports that correctly implement synchronize_cbs(). > > Reported-by: Karl Mehltretter <[email protected]> > Link: > https://lore.kernel.org/all/[email protected]/ > Signed-off-by: Michael S. Tsirkin <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/8f71425918a148dcad1be993ccabd39582d246ee.1789130213.git....@redhat.com?part=1
