public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Neuling <mikey@neuling.org>
To: "Matthew R. Ochs" <mrochs@linux.vnet.ibm.com>
Cc: linux-scsi@vger.kernel.org,
	James.Bottomley@HansenPartnership.com, nab@linux-iscsi.org,
	brking@linux.vnet.ibm.com, wenxiong@linux.vnet.ibm.com,
	dja@ozlabs.au.ibm.com, benh@kernel.crashing.org,
	hch@infradead.org, imunsie@au1.ibm.com,
	"Manoj N. Kumar" <manoj@linux.vnet.ibm.com>
Subject: Re: [PATCH v5 1/3] cxlflash: Base error recovery support
Date: Thu, 13 Aug 2015 20:10:00 +1000	[thread overview]
Message-ID: <1439460600.21643.48.camel@neuling.org> (raw)
In-Reply-To: <1439423466-15609-1-git-send-email-mrochs@linux.vnet.ibm.com>

On Wed, 2015-08-12 at 18:51 -0500, Matthew R. Ochs wrote:
> Introduce support for enhanced I/O error handling.
> 
> A device state is added to track 3 possible states of the device:
> 
> Normal - the device is operating normally and is fully operational
> 
> Limbo - the device is in a reset/recovery scenario and its operational
>         status is paused
> 
> Failed/terminating - the device has either failed to be reset/recovered
>                      or is being terminated (removed); it is no longer
>                      operational
> 
> All operations are allowed when the device is operating normally. When the
> device transitions to limbo state, I/O must be paused. To help accomplish
> this, a wait queue is introduced where existing and new threads can wait
> until the device is no longer in limbo. When coming out of limbo, threads
> need to check the state and error out gracefully when encountering the
> failed state. When the device transitions to the failed/terminating state,
> normal operations are no longer allowed. Only specially designated
> operations related to graceful cleanup are permitted.
> 
> Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
> Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com>
> Reviewed-by: Daniel Axtens <dja@axtens.net>

Thanks for integrating my suggestions.

Reviewed-by: Michael Neuling <mikey@neuling.org>

> ---
>  drivers/scsi/cxlflash/Kconfig  |   2 +-
>  drivers/scsi/cxlflash/common.h |  12 ++-
>  drivers/scsi/cxlflash/main.c   | 174 ++++++++++++++++++++++++++++++++++++++---
>  drivers/scsi/cxlflash/main.h   |   6 +-
>  4 files changed, 177 insertions(+), 17 deletions(-)


  reply	other threads:[~2015-08-13 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 23:51 [PATCH v5 1/3] cxlflash: Base error recovery support Matthew R. Ochs
2015-08-13 10:10 ` Michael Neuling [this message]
2015-08-13 13:25 ` wenxiong

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=1439460600.21643.48.camel@neuling.org \
    --to=mikey@neuling.org \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=benh@kernel.crashing.org \
    --cc=brking@linux.vnet.ibm.com \
    --cc=dja@ozlabs.au.ibm.com \
    --cc=hch@infradead.org \
    --cc=imunsie@au1.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=manoj@linux.vnet.ibm.com \
    --cc=mrochs@linux.vnet.ibm.com \
    --cc=nab@linux-iscsi.org \
    --cc=wenxiong@linux.vnet.ibm.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