linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: "Stewart, Sean" <Sean.Stewart@netapp.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
	James Bottomley <James.Bottomley@HansenPartnership.com>
Subject: Re: [PATCH 2/2][RESEND] scsi_dh_alua: ALUA handler attach should succeed while TPG is transitioning
Date: Wed, 16 Oct 2013 07:49:38 +0200	[thread overview]
Message-ID: <525E28F2.3040403@suse.de> (raw)
In-Reply-To: <1381852374.1593.17.camel@localhost.localdomain>

On 10/15/2013 05:52 PM, Stewart, Sean wrote:
> During testing, it was discovered that when a device tries to attach to the alua handler while in TPG
> state of transitioning, the alua_rtpg function will wait for it to exit the state before allowing it
> to continue. As a result, if the 60 second timeout expires, the alua handler will not attach to the
> device.
> 
> To fix this, I have introduced an input argument to alua_rtpg called wait_for_transition.  The idea is
> that it will wait for the transition to complete before an activation (because the current TPG state has
> some bearing in that case), but during a discovery if it is transitioning, it will not wait, and will
> store the state as standby for the time being.
> 
> I believe the precedent exists for this from commit c0d289b3e59577532c45ee9110ef81bd7b341272
> Since if the device reports a state of transitioning, it can transition to other more valid states, and
> it has been established TPGS is supported on the device, if it is attaching.
> 
> Signed-off-by: Sean Stewart <Sean.Stewart@netapp.com>

Hmm. Looks like you're correct.

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

      reply	other threads:[~2013-10-16  5:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15 15:52 [PATCH 2/2][RESEND] scsi_dh_alua: ALUA handler attach should succeed while TPG is transitioning Stewart, Sean
2013-10-16  5:49 ` Hannes Reinecke [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=525E28F2.3040403@suse.de \
    --to=hare@suse.de \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=Sean.Stewart@netapp.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).