Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:Update
qemu.35260
hw-scsi-scsi-generic-Fixup-VPD-block-lim.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hw-scsi-scsi-generic-Fixup-VPD-block-lim.patch of Package qemu.35260
From: Hannes Reinecke <hare@suse.de> Date: Wed, 26 Oct 2022 12:31:21 +0200 Subject: hw/scsi/scsi-generic: Fixup VPD block limits emulation Move the check for SG_IO errors after the VPD block limits emulation, otherwise the emulation will never the triggered. References: bsc#1202364 Signed-off-by: Hannes Reinecke <hare@suse.de> --- hw/scsi/scsi-generic.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c index d410fd2171ff34782d9f6c81eadd..2e4e1a50f5ee7e44eccdcc775503 100644 --- a/hw/scsi/scsi-generic.c +++ b/hw/scsi/scsi-generic.c @@ -269,10 +269,7 @@ static void scsi_read_complete(void * opaque, int ret) aio_context_acquire(blk_get_aio_context(s->conf.blk)); - if (ret || r->req.io_canceled || - r->io_header.status || - r->io_header.driver_status || - r->io_header.host_status) { + if (ret || r->req.io_canceled) { scsi_command_complete_noio(r, ret); goto done; } @@ -308,7 +305,9 @@ static void scsi_read_complete(void * opaque, int ret) } } - if (len == 0) { + if (len == 0 || r->io_header.status || + r->io_header.driver_status || + r->io_header.host_status) { scsi_command_complete_noio(r, 0); goto done; } @@ -387,10 +386,7 @@ static void scsi_write_complete(void * opaque, int ret) aio_context_acquire(blk_get_aio_context(s->conf.blk)); - if (ret || r->req.io_canceled || - r->io_header.status || - r->io_header.driver_status || - r->io_header.host_status) { + if (ret || r->req.io_canceled) { scsi_command_complete_noio(r, ret); goto done; }
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