An userland device implemented through VDUSE could take rtnl forever if the virtio-net driver is running on top of virtio_vdpa. Let's break the device if it does not return the buffer in a longer-than-assumible timeout.
A less agressive path can be taken to recover the device, like only resetting the control virtqueue. However, the state of the device after this action is taken races, as the vq could be reset after the device writes the OK. Leaving TODO anyway. Eugenio Pérez (2): virtio_net: timeout control virtqueue commands vduse: lift restriction about net devices with CVQ drivers/net/virtio_net.c | 10 ++++++++++ drivers/vdpa/vdpa_user/vduse_dev.c | 3 --- 2 files changed, 10 insertions(+), 3 deletions(-) -- 2.51.0

