iscsi: pass SCSI status back for SG_IO
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 644c6869d3
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
ca86c04717
commit
f216833ac0
|
@ -768,6 +768,7 @@ iscsi_aio_ioctl_cb(struct iscsi_context *iscsi, int status,
|
||||||
acb->ioh->driver_status = 0;
|
acb->ioh->driver_status = 0;
|
||||||
acb->ioh->host_status = 0;
|
acb->ioh->host_status = 0;
|
||||||
acb->ioh->resid = 0;
|
acb->ioh->resid = 0;
|
||||||
|
acb->ioh->status = status;
|
||||||
|
|
||||||
#define SG_ERR_DRIVER_SENSE 0x08
|
#define SG_ERR_DRIVER_SENSE 0x08
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue