[PATCH v2 0/4] Implement reconnect for vhost-user-scsi

Li Feng posted 4 patches 9 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230725104256.4861-1-fengli@smartx.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Raphael Norwitz <raphael.norwitz@nutanix.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>, "Alex Bennée" <alex.bennee@linaro.org>, Viresh Kumar <viresh.kumar@linaro.org>
There is a newer version of this series
hw/block/vhost-user-blk.c             |   4 +-
hw/scsi/vhost-scsi-common.c           |  43 ++---
hw/scsi/vhost-user-scsi.c             | 220 +++++++++++++++++++++++---
hw/virtio/vhost-user-gpio.c           |   3 +-
hw/virtio/vhost.c                     |   2 +
include/hw/virtio/vhost-scsi-common.h |   3 +
include/hw/virtio/vhost-user-scsi.h   |   3 +
include/hw/virtio/vhost.h             |   2 +
8 files changed, 235 insertions(+), 45 deletions(-)
[PATCH v2 0/4] Implement reconnect for vhost-user-scsi
Posted by Li Feng 9 months, 1 week ago
Hi,

This patchset adds reconnect support for vhost-user-scsi. At the same
times, fix vhost fd leak and refactor some code.

Changes for v2:
- Split the v1 patch to small separate patchset;
- New patch for fixing fd leak, which has sent to reviewers in another
  mail;
- Implement the `vhost_user_scsi_handle_output`;
- Add the started_vu safe check;
- Fix error handler;
- Check the inflight before set/get inflight fd.

Li Feng (4):
  vhost: fix the fd leak
  vhost-user-common: send get_inflight_fd once
  vhost: move and rename the conn retry times
  vhost-user-scsi: support reconnect to backend

 hw/block/vhost-user-blk.c             |   4 +-
 hw/scsi/vhost-scsi-common.c           |  43 ++---
 hw/scsi/vhost-user-scsi.c             | 220 +++++++++++++++++++++++---
 hw/virtio/vhost-user-gpio.c           |   3 +-
 hw/virtio/vhost.c                     |   2 +
 include/hw/virtio/vhost-scsi-common.h |   3 +
 include/hw/virtio/vhost-user-scsi.h   |   3 +
 include/hw/virtio/vhost.h             |   2 +
 8 files changed, 235 insertions(+), 45 deletions(-)

-- 
2.41.0