Re: [PATCH 07/10] vhost, vhost-scsi: flush IO vqs then send TMF rsp

2020-11-17 Thread Stefan Hajnoczi
On Thu, Nov 12, 2020 at 05:19:07PM -0600, Mike Christie wrote: > 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 which > calls vhost_scsi_release_cmd to add them to the work queue. > > When the next patch

[PATCH 07/10] vhost, vhost-scsi: flush IO vqs then send TMF rsp

2020-11-12 Thread Mike Christie
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 which calls vhost_scsi_release_cmd to add them to the work queue. When the next patch adds multiple worker support, the worker threads could still be sending