From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: "Stewart, Sean" <Sean.Stewart@netapp.com>
Cc: device-mapper development <dm-devel@redhat.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"James.Bottomley@suse.de" <James.Bottomley@suse.de>,
"snitzer@redhat.com" <snitzer@redhat.com>
Subject: Re: [dm-devel] [PATCH] [RESEND] scsi_dh_alua: Add module parameter to allow failover to non preferred path without STPG
Date: Thu, 11 Apr 2013 15:58:36 -0700 [thread overview]
Message-ID: <1365721116.6982.3.camel@dabdike> (raw)
In-Reply-To: <8255ED565A0EAA4A960625E27D49DBF21FF97F35@SACEXCMBX04-PRD.hq.netapp.com>
On Thu, 2013-04-04 at 14:54 +0000, Stewart, Sean wrote:
> Resending with requested rewording of the parameter description.
> Currently ALUA device handler sends STPG command during failover and failback.
> Failover can be optimized by implicit failover (by not to sending STPG command), when 1 is passed as hwhandler parameter in multipath.conf. ex "2 alua 1". We may need to pass the parameter through module param for alua device handler to optimize failover if incase retain_attached_hwhandler set in multipath.conf and hwhandler is set with non-tpgs device handler ex: '1 rdac'.
>
> Signed-off-by: Vijay Chauhan <vijay.chauhan@netapp.com>
> Signed-off-by: Sean Stewart <Sean.Stewart@netapp.com>
Growl, next time don't hand edit the patch. Humans rarely understand
patch language well enough to get it right. I fixed it this time, but
this is the last time ...
> ---
> --- a/drivers/scsi/device_handler/scsi_dh_alua.c.orig 2013-03-27 12:18:35.000000000 +0530
> +++ b/drivers/scsi/device_handler/scsi_dh_alua.c 2013-03-27 13:23:16.000000000 +0530
> @@ -710,6 +710,10 @@ static int alua_set_params(struct scsi_d
You actually added an extra line, so the second has to become +710,11
> return result;
> }
>
> +static uint optimize_stpg;
> +module_param(optimize_stpg, uint, S_IRUGO|S_IWUSR);
> +MODULE_PARM_DESC(optimize_stpg, "Allow use of a non-optimized path,
> +rather than sending a STPG, when implicit TPGS is supported (0=No,1=Yes). Default is 0.");
> +
> /*
> * alua_activate - activate a path
> * @sdev: device on the path to be activated @@ -731,6 +735,9 @@ static int alua_activate(struct scsi_dev
This is mangled, I think ...
James
> if (err != SCSI_DH_OK)
> goto out;
>
> + if (optimize_stpg)
> + h->flags |= ALUA_OPTIMIZE_STPG;
> +
> if (h->tpgs & TPGS_MODE_EXPLICIT) {
> switch (h->state) {
> case TPGS_STATE_NONOPTIMIZED:
> --
> --
> 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
prev parent reply other threads:[~2013-04-11 22:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-04 14:54 [dm-devel] [PATCH] [RESEND] scsi_dh_alua: Add module parameter to allow failover to non preferred path without STPG Stewart, Sean
2013-04-11 22:58 ` James Bottomley [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=1365721116.6982.3.camel@dabdike \
--to=james.bottomley@hansenpartnership.com \
--cc=James.Bottomley@suse.de \
--cc=Sean.Stewart@netapp.com \
--cc=dm-devel@redhat.com \
--cc=linux-scsi@vger.kernel.org \
--cc=snitzer@redhat.com \
/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