diff options
| author | Dongli Zhang <[email protected]> | 2025-04-03 06:29:47 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2025-04-18 14:08:11 +0000 |
| commit | b182687135474d7ed905a07cc6cb2734b359e13e (patch) | |
| tree | ec316f1ace1e99df2b798f9c8e65487e36a1a941 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | vhost-scsi: protect vq->log_used with vq->mutex (diff) | |
| download | kernel-b182687135474d7ed905a07cc6cb2734b359e13e.tar.gz kernel-b182687135474d7ed905a07cc6cb2734b359e13e.zip | |
vhost-scsi: Fix vhost_scsi_send_bad_target()
Although the support of VIRTIO_F_ANY_LAYOUT + VIRTIO_F_VERSION_1 was
signaled by the commit 664ed90e621c ("vhost/scsi: Set
VIRTIO_F_ANY_LAYOUT + VIRTIO_F_VERSION_1 feature bits"),
vhost_scsi_send_bad_target() still assumes the response in a single
descriptor.
In addition, although vhost_scsi_send_bad_target() is used by both I/O
queue and control queue, the response header is always
virtio_scsi_cmd_resp. It is required to use virtio_scsi_ctrl_tmf_resp or
virtio_scsi_ctrl_an_resp for control queue.
Fixes: 664ed90e621c ("vhost/scsi: Set VIRTIO_F_ANY_LAYOUT + VIRTIO_F_VERSION_1 feature bits")
Signed-off-by: Dongli Zhang <[email protected]>
Acked-by: Jason Wang <[email protected]>
Reviewed-by: Mike Christie <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
