• Mike Christie's avatar
    vhost_scsi: Handle vhost_vq_work_queue failures for TMFs · 0352c961
    Mike Christie authored
    vhost_vq_work_queue will never fail when queueing the TMF's response
    handling because a guest can only send us TMFs when the device is fully
    setup so there is always a worker at that time. In the next patches we
    will modify the worker code so it handles SIGKILL by exiting before
    outstanding commands/TMFs have sent their responses. In that case
    vhost_vq_work_queue can fail when we try to send a response.
    
    This has us just free the TMF's resources since at this time the guest
    won't be able to get a response even if we could send it.
    Signed-off-by: default avatarMike Christie <michael.christie@oracle.com>
    Message-Id: <20240316004707.45557-6-michael.christie@oracle.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    0352c961
scsi.c 68 KB