> On Jul 25, 2023, at 6:42 AM, Li Feng <fen...@smartx.com> wrote: > > When the vhost-user reconnect to the backend, the notifer should be > cleanup. Otherwise, the fd resource will be exhausted. > > Fixes: f9a09ca3ea ("vhost: add support for configure interrupt") > > Signed-off-by: Li Feng <fen...@smartx.com> Reviewed-by: Raphael Norwitz <raphael.norw...@nutanix.com> > --- > hw/virtio/vhost.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c > index abf0d03c8d..e2f6ffb446 100644 > --- a/hw/virtio/vhost.c > +++ b/hw/virtio/vhost.c > @@ -2044,6 +2044,8 @@ void vhost_dev_stop(struct vhost_dev *hdev, > VirtIODevice *vdev, bool vrings) > event_notifier_test_and_clear( > &hdev->vqs[VHOST_QUEUE_NUM_CONFIG_INR].masked_config_notifier); > event_notifier_test_and_clear(&vdev->config_notifier); > + event_notifier_cleanup( > + &hdev->vqs[VHOST_QUEUE_NUM_CONFIG_INR].masked_config_notifier); > > trace_vhost_dev_stop(hdev, vdev->name, vrings); > > -- > 2.41.0 >
- Re: [PATCH v2 2/4] vhost-user-common: send get... Michael S. Tsirkin
- Re: [PATCH v2 2/4] vhost-user-common: send... Li Feng
- Re: [PATCH v2 2/4] vhost-user-common: ... Raphael Norwitz
- Re: [PATCH v2 2/4] vhost-user-com... Li Feng
- Re: [PATCH v2 2/4] vhost-user... Raphael Norwitz
- [PATCH v2 4/4] vhost-user-scsi: support reconnect ... Li Feng
- [PATCH v2 1/4] vhost: fix the fd leak Li Feng
- Re: [PATCH v2 1/4] vhost: fix the fd leak Raphael Norwitz
- [PATCH v2 3/4] vhost: move and rename the conn ret... Li Feng
- Re: [PATCH v2 3/4] vhost: move and rename the ... Raphael Norwitz
- [PATCH v3 0/5] Implement reconnect for vhost-user-scsi Li Feng
- [PATCH v3 3/5] vhost: move and rename the conn ret... Li Feng
- [PATCH v3 2/5] vhost-user-common: send get_infligh... Li Feng
- Re: [PATCH v3 2/5] vhost-user-common: send get... Raphael Norwitz
- [PATCH v3 4/5] vhost-user-scsi: support reconnect ... Li Feng
- Re: [PATCH v3 4/5] vhost-user-scsi: support re... Raphael Norwitz
- Re: [PATCH v3 4/5] vhost-user-scsi: support re... Markus Armbruster