From: Mike Christie <michaelc@cs.wisc.edu>
To: Christof Schmitt <christof.schmitt@de.ibm.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [patch 1/2] scsi: Allow FC LLD to fast-fail scsi eh
Date: Thu, 25 Mar 2010 14:36:39 -0500 [thread overview]
Message-ID: <4BABBB47.50203@cs.wisc.edu> (raw)
In-Reply-To: <20100324155827.168989000@de.ibm.com>
On 03/24/2010 10:50 AM, Christof Schmitt wrote:
> From: Christof Schmitt<christof.schmitt@de.ibm.com>
>
> If the scsi eh is running and then a FC LLD calls
> fc_remote_port_delete, the SCSI commands sent from the eh will fail.
> To prevent this, a FC LLD can call fc_block_scsi_eh from the eh
> callback, blocking the eh thread until the dev_loss_tmo fires or the
> remote port is available again.
>
> If (e.g. for a multipathing setup) the dev_loss_tmo is set to a very
> large value, thus preventing the scsi device removal , the scsi eh can
> block for a long time. For multipathing, the fast_io_fail_tmo is then
> set to a low value to detect path problems sooner.
>
> This patch introduces a new return code FAST_IO_FAIL. The function
> fc_block_scsi_eh now returns FAST_IO_FAIL when the fast_io_fail_tmo
> fires. This indicates that the LLD terminated all pending I/O requests
> and there are no more pending SCSI commands for the scsi eh to wait
> for. This return code can be passed back to the scsi eh to stop the
> escalation and finish the recovery process for this device.
>
Patch seems ok to me. It fixes the bug I was trying to fix with my other
patch but I think your patch is nicer with the new error code to use.
next prev parent reply other threads:[~2010-03-25 19:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-24 15:50 [patch 0/2] Stop scsi eh when fast_io_fail_tmo fires Christof Schmitt
2010-03-24 15:50 ` [patch 1/2] scsi: Allow FC LLD to fast-fail scsi eh Christof Schmitt
2010-03-25 19:36 ` Mike Christie [this message]
2010-03-24 15:50 ` [patch 2/2] zfcp: Pass return code from fc_block_scsi_eh to " Christof Schmitt
-- strict thread matches above, loose matches on Subject: below --
2010-04-01 11:48 [patch 0/2] [PATCH/RESEND] Stop scsi eh when fast_io_fail_tmo fires Christof Schmitt
2010-04-01 11:48 ` [patch 1/2] scsi: Allow FC LLD to fast-fail scsi eh Christof Schmitt
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=4BABBB47.50203@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=christof.schmitt@de.ibm.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