Thanks Hannes and Mike,

Your help has been highly appreciated!


-----Original Message-----
From: Hannes Reinecke [] 
Sent: 31 August 2010 14:43
To: Goncalo Gomes
Cc: Mike Christie;; Shantanu Mehendale
Subject: Re: detected conn error (1011)

Goncalo Gomes wrote:
> Hi Hannes,
> Thanks. The Citrix XenServer 5.6 distribution kernel is based on the 2.6.27 
> tree of SLES 11.
> We add a few extra patches specific to Xen,  dom0 integration and some 
> backports from upstream.
> To the best of my knowledge these additions don't touch the iscsi layer, so 
> from the iscsi
> drivers point of view, I believe they are as pristine as the ones in the SuSE 
> kernel and that's
> why we need the patch as the binaries probably will mismatch gcc version 
> and/or the versioning
> that we use e.g I do definitely 
> appreciate your
> 'forward thinking' with regards to the issue, though!
I just checked, and the resulting patch is indeed like you proposed:

diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 32b30f1..441ca8b 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1336,9 +1336,6 @@ int iscsi_queuecommand(struct scsi_cmnd *sc, void (*done)(
struct scsi_cmnd *))
                switch (session->state) {
                case ISCSI_STATE_FAILED:
-                       reason = FAILURE_SESSION_FAILED;
-                       sc->result = DID_TRANSPORT_DISRUPTED << 16;
-                       break;
                case ISCSI_STATE_IN_RECOVERY:
                        reason = FAILURE_SESSION_IN_RECOVERY;
                        sc->result = DID_IMM_RETRY << 16;



Dr. Hannes Reinecke                   zSeries & Storage                          +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to