diff options
author | Dongli Zhang <dongli.zhang@oracle.com> | 2025-04-02 23:29:47 -0700 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2025-04-18 10:08:11 -0400 |
commit | b182687135474d7ed905a07cc6cb2734b359e13e (patch) | |
tree | ec316f1ace1e99df2b798f9c8e65487e36a1a941 /scripts/gdb/linux/proc.py | |
parent | f591cf9fce724e5075cc67488c43c6e39e8cbe27 (diff) | |
download | linux-stable-b182687135474d7ed905a07cc6cb2734b359e13e.tar.gz linux-stable-b182687135474d7ed905a07cc6cb2734b359e13e.tar.bz2 linux-stable-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 <dongli.zhang@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20250403063028.16045-3-dongli.zhang@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions