vhost-user-scsi: free the inflight area when reset
commit95e1019a4a9b4b6e2caeb3fd392525e522a747db
authorLi Feng <fengli@smartx.com>
Thu, 23 Nov 2023 05:54:12 +0000 (23 13:54 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 2 Dec 2023 20:56:49 +0000 (2 15:56 -0500)
tree7ebe4172fa6c199f45f46eb143babfdbb3716392
parent298d4f892e745cfb8a33b5ed2feaaab271f6e50c
vhost-user-scsi: free the inflight area when reset

Keep it the same to vhost-user-blk.
At the same time, fix the vhost_reset_device.

Signed-off-by: Li Feng <fengli@smartx.com>
Message-Id: <20231123055431.217792-3-fengli@smartx.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/scsi/vhost-user-scsi.c
hw/virtio/virtio.c