All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikanth Karthikesan <nikanth@gmail.com>
To: Martin George <marting@netapp.com>
Cc: James Bottomley <James.Bottomley@suse.de>,
	linux-scsi@vger.kernel.org, Hannes Reinecke <hare@suse.de>,
	Mike Christie <michaelc@cs.wisc.edu>
Subject: Re: [PATCH] [SCSI] scsi_dh_alua: Attach to UNAVAILABLE/OFFLINE AAS devices
Date: Wed, 27 Apr 2011 12:12:51 +0530	[thread overview]
Message-ID: <201104271212.51890.nikanth@kernel.org> (raw)
In-Reply-To: <201104261827.06024.marting@netapp.com>

On Tuesday, April 26, 2011 06:27:05 PM Martin George wrote:
> The SCSI ALUA handler currently fails to attach to devices
> reporting an UNAVAILABLE/OFFLINE AAS. But given that an
> UNAVAILABLE/OFFLINE AAS can transition to other states
> like ACTIVE/OPTIMIZED, ACTIVE/NON-OPTIMIZED, etc. as per
> SPC4, this ALUA handler behavior should be rectified so
> as to attach to devices which also report an
> UNAVAILABLE/OFFLINE AAS.
> 
> The below patch enables the same.
> 
> Signed-off-by: Martin George <marting@netapp.com>

Reviewed-by: Nikanth Karthikesan <nikanth@kernel.org>

Thanks
Nikanth

> ---
>  drivers/scsi/device_handler/scsi_dh_alua.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c
> b/drivers/scsi/device_handler/scsi_dh_alua.c index 42fe529..6fec9fe 100644
> --- a/drivers/scsi/device_handler/scsi_dh_alua.c
> +++ b/drivers/scsi/device_handler/scsi_dh_alua.c
> @@ -782,7 +782,7 @@ static int alua_bus_attach(struct scsi_device *sdev)
>  	h->sdev = sdev;
> 
>  	err = alua_initialize(sdev, h);
> -	if (err != SCSI_DH_OK)
> +	if ((err != SCSI_DH_OK) && (err != SCSI_DH_DEV_OFFLINED))
>  		goto failed;
> 
>  	if (!try_module_get(THIS_MODULE))

  parent reply	other threads:[~2011-04-27  6:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 12:57 [PATCH] [SCSI] scsi_dh_alua: Attach to UNAVAILABLE/OFFLINE AAS devices Martin George
2011-04-26 21:24 ` Mike Christie
2011-04-27  6:42 ` Nikanth Karthikesan [this message]
2011-05-02  6:00 ` Hannes Reinecke

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=201104271212.51890.nikanth@kernel.org \
    --to=nikanth@gmail.com \
    --cc=James.Bottomley@suse.de \
    --cc=hare@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=marting@netapp.com \
    --cc=michaelc@cs.wisc.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.