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 2.6.27.42-0.1.1.xs5.6.0.44.111158xen. 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;

HTH,

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                   zSeries & Storage
h...@suse.de                          +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 open-is...@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to