• Mike Christie's avatar
    vhost-scsi: Handle vhost_vq_work_queue failures for cmds · 1eceddee
    Mike Christie authored
    In the next patches we will support the vhost_task being killed while in
    use. The problem for vhost-scsi is that we can't free some structs until
    we get responses for commands we have submitted to the target layer and
    we currently process the responses from the vhost_task.
    
    This has just drop the responses and free the command's resources. When
    all commands have completed then operations like flush will be woken up
    and we can complete device release and endpoint cleanup.
    Signed-off-by: default avatarMike Christie <michael.christie@oracle.com>
    Message-Id: <20240316004707.45557-3-michael.christie@oracle.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    1eceddee
scsi.c 68 KB