Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
qemu.22427
scsi-generic-check-for-additional-SG_IO-.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scsi-generic-check-for-additional-SG_IO-.patch of Package qemu.22427
From: Hannes Reinecke <hare@suse.de> Date: Wed, 11 Nov 2020 15:40:52 +0100 Subject: scsi-generic: check for additional SG_IO status on completion References: bsc#1178049 SG_IO may return additional status in the 'status', 'driver_status', and 'host_status' fields. When either of these fields are set the command has not been executed normally, so we should not continue processing this command but rather return an error. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/scsi/scsi-generic.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c index b3ea492beedc2a075157957e0595..2379ca9e91b4e775080d4246ba2a 100644 --- a/hw/scsi/scsi-generic.c +++ b/hw/scsi/scsi-generic.c @@ -254,7 +254,10 @@ 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) { + if (ret || r->req.io_canceled || + r->io_header.status || + r->io_header.driver_status || + r->io_header.host_status) { scsi_command_complete_noio(r, ret); goto done; } @@ -368,7 +371,10 @@ 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) { + if (ret || r->req.io_canceled || + r->io_header.status || + r->io_header.driver_status || + r->io_header.host_status) { 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