# Re: \[PATCH 6/9\] vhost-scsi: make SCSI cmd completion per vq

- From: Stefan Hajnoczi \<stefanha@redhat.com\>
- Date: 2021-06-03 13:57:44 
- List: linux-scsi
- Page: https://ratatoskr.run/linux-scsi/2021/06/6746148
- Thread: https://ratatoskr.run/target-devel/2021/05/6745917/t.md

```text
On Tue, May 25, 2021 at 01:05:57PM -0500, Mike Christie wrote:
> This patch separates the scsi cmd completion code paths so we can complete
> cmds based on their vq instead of having all cmds complete on the same
> worker/CPU. This will be useful with the next patch that allows us to
> create mulitple worker threads and bind them to different vqs, so we can
> have completions running on different threads/CPUs.
> 
> Signed-off-by: Mike Christie <michael.christie@oracle.com>
> ---
>  drivers/vhost/scsi.c | 48 +++++++++++++++++++++++---------------------
>  1 file changed, 25 insertions(+), 23 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-scsi/2021/06/6746148/attachment/0) (application/pgp-signature, 488 bytes)
