Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP1
qemu-testsuite
0169-virtio-scsi-change-DID-TIMEOUT-hand.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0169-virtio-scsi-change-DID-TIMEOUT-hand.patch of Package qemu-testsuite
From: Bruce Rogers <brogers@suse.com> Date: Wed, 3 Feb 2021 14:25:38 -0700 Subject: virtio-scsi: change DID TIMEOUT handling This patch implements a change of SG_ERR_DID_TIME_OUT handling as suggested in https://bugzilla.suse.com/show_bug.cgi?id=1178049#c145 Suggested-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/scsi/virtio-scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index ec8412d94dc6996bf8c46283c3f7..ea63f0edbe58ac908f55d52986ec 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -497,7 +497,6 @@ static void virtio_scsi_command_complete(SCSIRequest *r, uint32_t status, req->resp.cmd.response = VIRTIO_SCSI_S_INCORRECT_LUN; break; case SG_ERR_DID_ABORT: - case SG_ERR_DID_TIME_OUT: req->resp.cmd.response = VIRTIO_SCSI_S_ABORTED; break; case SG_ERR_DID_BAD_TARGET: @@ -507,6 +506,7 @@ static void virtio_scsi_command_complete(SCSIRequest *r, uint32_t status, req->resp.cmd.response = VIRTIO_SCSI_S_RESET; break; case SG_ERR_DID_BUS_BUSY: + case SG_ERR_DID_TIME_OUT: req->resp.cmd.response = VIRTIO_SCSI_S_BUSY; break; case SG_ERR_DID_TRANSPORT_DISRUPTED:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor