• Mike Christie's avatar
    vhost_scsi: flush IO vqs then send TMF rsp · 0a3eac52
    Mike Christie authored
    With one worker we will always send the scsi cmd responses then send the
    TMF rsp, because LIO will always complete the scsi cmds first then call
    into us to send the TMF response.
    
    With multiple workers, the IO vq workers could be running while the
    TMF/ctl vq worker is running so this has us do a flush before completing
    the TMF to make sure cmds are completed when it's work is later queued
    and run.
    Signed-off-by: default avatarMike Christie <michael.christie@oracle.com>
    Message-Id: <20230626232307.97930-12-michael.christie@oracle.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    0a3eac52
scsi.c 64.1 KB