From 644c6869d335e10bc10b8399646f767763c4977f Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld Date: Fri, 13 May 2016 13:03:22 +0200 Subject: iscsi: pass SCSI status back for SG_IO Signed-off-by: Vadim Rozenfeld Signed-off-by: Paolo Bonzini --- block/iscsi.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.1