dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed
@ 2011-12-21 23:01 Moger, Babu
  2012-01-09  7:12 ` [dm-devel] " Hannes Reinecke
  2012-01-10 20:50 ` Mike Snitzer
  0 siblings, 2 replies; 3+ messages in thread
From: Moger, Babu @ 2011-12-21 23:01 UTC (permalink / raw)
  To: linux-scsi; +Cc: dm-devel, JBottomley

This patch adds a check-condition in scsi_dh_alua handler for a retry.
Sometimes,
I have seen attach failing due to this check-condition with following
error 
messages on NetApp E series storage.

Dec  7 15:31:01 nilgiris kernel: [102979.696673] scsi 3:0:2:9: alua:
port group 00 rel port 01
Dec  7 15:31:01 nilgiris kernel: [102979.697082] scsi 3:0:2:9: alua:
rtpg failed with 8000002
Dec  7 15:31:01 nilgiris kernel: [102979.697086] scsi 3:0:2:9: alua:
rtpg sense code 06/2a/01
Dec  7 15:31:01 nilgiris kernel: [102979.697088] scsi 3:0:2:9: alua: not
attached

Signed-off-by: Babu Moger <babu.moger@netapp.com>
---

--- linux-3.2-rc6/drivers/scsi/device_handler/scsi_dh_alua.c.orig
2011-12-21 15:48:46.000000000 -0600
+++ linux-3.2-rc6/drivers/scsi/device_handler/scsi_dh_alua.c
2011-12-21 16:03:56.000000000 -0600
@@ -466,6 +466,11 @@ static int alua_check_sense(struct scsi_
 			 * Power On, Reset, or Bus Device Reset, just
retry.
 			 */
 			return ADD_TO_MLQUEUE;
+		if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x01)
+			/*
+			 * Mode Parameters Changed
+			 */
+			return ADD_TO_MLQUEUE;
 		if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x06)
 			/*
 			 * ALUA state changed



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dm-devel] [PATCH] scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed
  2011-12-21 23:01 [PATCH] scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed Moger, Babu
@ 2012-01-09  7:12 ` Hannes Reinecke
  2012-01-10 20:50 ` Mike Snitzer
  1 sibling, 0 replies; 3+ messages in thread
From: Hannes Reinecke @ 2012-01-09  7:12 UTC (permalink / raw)
  To: device-mapper development; +Cc: Moger, Babu, linux-scsi, JBottomley

On 12/22/2011 12:01 AM, Moger, Babu wrote:
> This patch adds a check-condition in scsi_dh_alua handler for a retry.
> Sometimes,
> I have seen attach failing due to this check-condition with following
> error 
> messages on NetApp E series storage.
> 
> Dec  7 15:31:01 nilgiris kernel: [102979.696673] scsi 3:0:2:9: alua:
> port group 00 rel port 01
> Dec  7 15:31:01 nilgiris kernel: [102979.697082] scsi 3:0:2:9: alua:
> rtpg failed with 8000002
> Dec  7 15:31:01 nilgiris kernel: [102979.697086] scsi 3:0:2:9: alua:
> rtpg sense code 06/2a/01
> Dec  7 15:31:01 nilgiris kernel: [102979.697088] scsi 3:0:2:9: alua: not
> attached
> 
> Signed-off-by: Babu Moger <babu.moger@netapp.com>
Looks ok.

Acked-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed
  2011-12-21 23:01 [PATCH] scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed Moger, Babu
  2012-01-09  7:12 ` [dm-devel] " Hannes Reinecke
@ 2012-01-10 20:50 ` Mike Snitzer
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Snitzer @ 2012-01-10 20:50 UTC (permalink / raw)
  To: Moger, Babu; +Cc: linux-scsi, dm-devel, JBottomley

On Wed, Dec 21 2011 at  6:01pm -0500,
Moger, Babu <Babu.Moger@netapp.com> wrote:

> This patch adds a check-condition in scsi_dh_alua handler for a retry.
> Sometimes,
> I have seen attach failing due to this check-condition with following
> error 
> messages on NetApp E series storage.
> 
> Dec  7 15:31:01 nilgiris kernel: [102979.696673] scsi 3:0:2:9: alua:
> port group 00 rel port 01
> Dec  7 15:31:01 nilgiris kernel: [102979.697082] scsi 3:0:2:9: alua:
> rtpg failed with 8000002
> Dec  7 15:31:01 nilgiris kernel: [102979.697086] scsi 3:0:2:9: alua:
> rtpg sense code 06/2a/01
> Dec  7 15:31:01 nilgiris kernel: [102979.697088] scsi 3:0:2:9: alua: not
> attached
> 
> Signed-off-by: Babu Moger <babu.moger@netapp.com>

Babu, this patch is malformed due to line wrapping.

Please repost with my:

Acked-by: Mike Snitzer <snitzer@redhat.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-10 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-21 23:01 [PATCH] scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed Moger, Babu
2012-01-09  7:12 ` [dm-devel] " Hannes Reinecke
2012-01-10 20:50 ` Mike Snitzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).