diff options
author | Vadim Rozenfeld <vrozenfe@redhat.com> | 2016-05-13 13:03:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-05-23 16:53:46 +0200 |
commit | 644c6869d335e10bc10b8399646f767763c4977f (patch) | |
tree | af95bf424b8453bebde39ec3a607e4e9ecb480e4 /block | |
parent | 6c1fef6b59563cc415f21e03f81539ed4b33ad90 (diff) | |
download | qemu-644c6869d335e10bc10b8399646f767763c4977f.zip qemu-644c6869d335e10bc10b8399646f767763c4977f.tar.gz qemu-644c6869d335e10bc10b8399646f767763c4977f.tar.bz2 |
iscsi: pass SCSI status back for SG_IO
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/iscsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index 10f3906..2ca8e72 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -761,6 +761,7 @@ iscsi_aio_ioctl_cb(struct iscsi_context *iscsi, int status, acb->ioh->driver_status = 0; acb->ioh->host_status = 0; acb->ioh->resid = 0; + acb->ioh->status = status; #define SG_ERR_DRIVER_SENSE 0x08 |