vhost_scsi: make SCSI cmd completion per vq
authorMike Christie <michael.christie@oracle.com>
Mon, 26 Jun 2023 23:22:59 +0000 (18:22 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2023 16:15:13 +0000 (12:15 -0400)
commit48ae70dd4d9c448d1d628b4ccbdd1d912cc24215
treedb9975a3e6c684af9d42664ad1e01c8c3a7c5ef0
parent9e09d0ec2b8da6f776a1c8bc7adf6d5501d43a37
vhost_scsi: make SCSI cmd completion per vq

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 patches that allow us to
create mulitple worker threads and bind them to different vqs, and we can
have completions running on different threads/CPUs.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230626232307.97930-10-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/scsi.c