diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2026-09-03 11:28:48 -0400 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-09-04 17:06:05 -0400 |
| commit | f49e6cf919425cc55f10fd7cda7e0fc895df4cc0 (patch) | |
| tree | 872a22e019d0591a498abdd604c4a0364a312280 /scripts/Makefile.thinlto | |
| parent | 1ff1bdfdf715df1137a7387a6f1b5ceba7890e09 (diff) | |
| download | linux-next-f49e6cf919425cc55f10fd7cda7e0fc895df4cc0.tar.gz linux-next-f49e6cf919425cc55f10fd7cda7e0fc895df4cc0.zip | |
virtio: synchronize callbacks after device reset
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.
Move virtio_synchronize_cbs from virtio pci to virtio_reset_device
fixing this for all transports that implement synchronize_cbs().
NB: transports without synchronize_cbs are probably still broken.
Reported-by: Karl Mehltretter <kmehltretter@gmail.com>
Link: https://lore.kernel.org/all/20260818040433.66986-1-kmehltretter@gmail.com/
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
