mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
virtio_pci: drop callback sync on reset
The virtio core now synchronizes callbacks after reset, so the PCI transports no longer need to do it themselves. Assisted-by: LLM Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <64421afa76075c2e0b66ef5c2ea18948b861ab73.1789204858.git.mst@redhat.com>
This commit is contained in:
parent
2a12d96dd8
commit
ac7360d486
|
|
@ -98,8 +98,6 @@ static void vp_reset(struct virtio_device *vdev)
|
|||
/* Flush out the status write, and flush in device writes,
|
||||
* including MSi-X interrupts, if any. */
|
||||
vp_legacy_get_status(&vp_dev->ldev);
|
||||
/* Flush pending VQ/configuration callbacks. */
|
||||
vp_synchronize_vectors(vdev);
|
||||
}
|
||||
|
||||
static u16 vp_config_vector(struct virtio_pci_device *vp_dev, u16 vector)
|
||||
|
|
|
|||
|
|
@ -563,9 +563,6 @@ static void vp_reset(struct virtio_device *vdev)
|
|||
*/
|
||||
while (vp_modern_get_status(mdev))
|
||||
msleep(1);
|
||||
|
||||
/* Flush pending VQ/configuration callbacks. */
|
||||
vp_synchronize_vectors(vdev);
|
||||
}
|
||||
|
||||
static int vp_active_vq(struct virtqueue *vq, u16 msix_vec)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user