From: Tomas Henzl <thenzl@redhat.com>
To: Don Brace <don.brace@pmcs.com>,
scott.teel@pmcs.com, Kevin.Barnett@pmcs.com,
james.bottomley@parallels.com, hch@infradead.org,
Justin.Lindley@pmcs.com, elliott@hp.com
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 09/11] hpsa: add in new offline mode
Date: Wed, 22 Jul 2015 17:19:41 +0200 [thread overview]
Message-ID: <55AFB48D.2000000@redhat.com> (raw)
In-Reply-To: <20150718161304.31955.11191.stgit@brunhilda>
On 18.7.2015 18:13, Don Brace wrote:
> From: Scott Benesh <scott.benesh@pmcs.com>
>
> prevent adding volumes that are not available.
>
> Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
> Reviewed-by: Scott Teel <scott.teel@pmcs.com>
> Reviewed-by: Justin Lindley <justin.lindley@pmcs.com>
> Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Tomas
> ---
> drivers/scsi/hpsa.c | 15 +++++++++++----
> drivers/scsi/hpsa_cmd.h | 1 +
> 2 files changed, 12 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
> index df85f89..c72e900 100644
> --- a/drivers/scsi/hpsa.c
> +++ b/drivers/scsi/hpsa.c
> @@ -1481,17 +1481,23 @@ static void hpsa_show_volume_status(struct ctlr_info *h,
> h->scsi_host->host_no,
> sd->bus, sd->target, sd->lun);
> break;
> + case HPSA_LV_NOT_AVAILABLE:
> + dev_info(&h->pdev->dev,
> + "C%d:B%d:T%d:L%d Volume is waiting for transforming volume.\n",
> + h->scsi_host->host_no,
> + sd->bus, sd->target, sd->lun);
> + break;
> case HPSA_LV_UNDERGOING_RPI:
> dev_info(&h->pdev->dev,
> - "C%d:B%d:T%d:L%d Volume is undergoing rapid parity initialization process.\n",
> + "C%d:B%d:T%d:L%d Volume is undergoing rapid parity init.\n",
> h->scsi_host->host_no,
> sd->bus, sd->target, sd->lun);
> break;
> case HPSA_LV_PENDING_RPI:
> dev_info(&h->pdev->dev,
> - "C%d:B%d:T%d:L%d Volume is queued for rapid parity initialization process.\n",
> - h->scsi_host->host_no,
> - sd->bus, sd->target, sd->lun);
> + "C%d:B%d:T%d:L%d Volume is queued for rapid parity initialization process.\n",
> + h->scsi_host->host_no,
> + sd->bus, sd->target, sd->lun);
> break;
> case HPSA_LV_ENCRYPTED_NO_KEY:
> dev_info(&h->pdev->dev,
> @@ -3262,6 +3268,7 @@ static int hpsa_volume_offline(struct ctlr_info *h,
> /* Keep volume offline in certain cases: */
> switch (ldstat) {
> case HPSA_LV_UNDERGOING_ERASE:
> + case HPSA_LV_NOT_AVAILABLE:
> case HPSA_LV_UNDERGOING_RPI:
> case HPSA_LV_PENDING_RPI:
> case HPSA_LV_ENCRYPTED_NO_KEY:
> diff --git a/drivers/scsi/hpsa_cmd.h b/drivers/scsi/hpsa_cmd.h
> index 1a98bbe..47c756b 100644
> --- a/drivers/scsi/hpsa_cmd.h
> +++ b/drivers/scsi/hpsa_cmd.h
> @@ -164,6 +164,7 @@
> /* Logical volume states */
> #define HPSA_VPD_LV_STATUS_UNSUPPORTED 0xff
> #define HPSA_LV_OK 0x0
> +#define HPSA_LV_NOT_AVAILABLE 0x0b
> #define HPSA_LV_UNDERGOING_ERASE 0x0F
> #define HPSA_LV_UNDERGOING_RPI 0x12
> #define HPSA_LV_PENDING_RPI 0x13
>
> --
> 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
>
next prev parent reply other threads:[~2015-07-22 15:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-18 16:12 [PATCH 00/11] hpsa updates Don Brace
2015-07-18 16:12 ` [PATCH 01/11] hpsa: Correct double unlock of mutex Don Brace
2015-07-22 15:16 ` Tomas Henzl
2015-07-18 16:12 ` [PATCH 02/11] hpsa: correct decode sense data Don Brace
2015-07-22 15:16 ` Tomas Henzl
2015-07-18 16:12 ` [PATCH 03/11] hpsa: correct static checker warnings on driver init cleanup Don Brace
2015-07-22 15:16 ` Tomas Henzl
2015-07-18 16:12 ` [PATCH 04/11] hpsa: add PMC to copyright Don Brace
2015-07-18 16:12 ` [PATCH 05/11] hpsa: add sysfs entry path_info to show box and bay information Don Brace
2015-07-22 15:18 ` Tomas Henzl
2015-07-18 16:12 ` [PATCH 06/11] hpsa: cleanup update scsi devices Don Brace
2015-07-22 15:19 ` Tomas Henzl
2015-07-18 16:12 ` [PATCH 07/11] hpsa: add in new controllers Don Brace
2015-07-22 15:19 ` Tomas Henzl
2015-07-18 16:12 ` [PATCH 08/11] Change how controllers in mixed mode are handled Don Brace
2015-07-18 16:13 ` [PATCH 09/11] hpsa: add in new offline mode Don Brace
2015-07-22 15:19 ` Tomas Henzl [this message]
2015-07-18 16:13 ` [PATCH 10/11] hpsa: fix issues with multilun devices Don Brace
2015-07-22 15:19 ` Tomas Henzl
2015-07-18 16:13 ` [PATCH 11/11] hpsa: fix rmmod issues Don Brace
2015-07-22 15:20 ` Tomas Henzl
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=55AFB48D.2000000@redhat.com \
--to=thenzl@redhat.com \
--cc=Justin.Lindley@pmcs.com \
--cc=Kevin.Barnett@pmcs.com \
--cc=don.brace@pmcs.com \
--cc=elliott@hp.com \
--cc=hch@infradead.org \
--cc=james.bottomley@parallels.com \
--cc=linux-scsi@vger.kernel.org \
--cc=scott.teel@pmcs.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 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.