All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ren Mingxin <renmx@cn.fujitsu.com>
To: Hannes Reinecke <hare@suse.de>
Cc: James Bottomley <jbottomley@parallels.com>,
	linux-scsi@vger.kernel.org, Ewan Milne <emilne@redhat.com>
Subject: Re: [PATCH 7/8] scsi: Add 'eh_deadline' to limit SCSI EH runtime
Date: Wed, 23 Oct 2013 17:30:57 +0800	[thread overview]
Message-ID: <52679751.2040309@cn.fujitsu.com> (raw)
In-Reply-To: <1382518282-107606-8-git-send-email-hare@suse.de>

Hi, Hannes:

On 10/23/2013 04:51 PM, Hannes Reinecke wrote:
> This patchs adds an 'eh_deadline' sysfs attribute to the scsi
> host which limits the overall runtime of the SCSI EH.
> The 'eh_deadline' value is stored in the now obsolete field
> 'resetting'.
> When a command is failed the start time of the EH is stored
> in 'last_reset'. If the overall runtime of the SCSI EH is longer
> than last_reset + eh_deadline, the EH is short-circuited and
> falls through to issue a host reset only.
>
> Signed-off-by: Hannes Reinecke<hare@suse.de>
> ---
>   drivers/scsi/hosts.c      |   7 +++
>   drivers/scsi/scsi_error.c | 130 +++++++++++++++++++++++++++++++++++++++++++---
>   drivers/scsi/scsi_sysfs.c |  37 +++++++++++++
>   include/scsi/scsi_host.h  |   4 +-
>   4 files changed, 170 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
> index df0c3c7..f334859 100644
> --- a/drivers/scsi/hosts.c
> +++ b/drivers/scsi/hosts.c
> @@ -316,6 +316,12 @@ static void scsi_host_dev_release(struct device *dev)
>   	kfree(shost);
>   }
>
> +static unsigned int shost_eh_deadline;
> +
> +module_param_named(eh_deadline, shost_eh_deadline, uint, S_IRUGO|S_IWUSR);
> +MODULE_PARM_DESC(eh_deadline,
> +		 "SCSI EH timeout in seconds (should be between 1 and 2^32-1)");

Sorry, didn't consider '0' as the minimum valid value as we talked on
Oct 9?

Thanks,
Ren

<snip>
> +	int eh_deadline;
>   	unsigned long last_reset;
>
>   	/*


  reply	other threads:[~2013-10-23  9:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23  8:51 [PATCHv3 0/8] Limit overall SCSI EH runtime Hannes Reinecke
2013-10-23  8:51 ` [PATCH 1/8] dpt_i2o: Remove DPTI_STATE_IOCTL Hannes Reinecke
2013-10-23  8:51 ` [PATCH 2/8] dpt_i2o: return SCSI_MLQUEUE_HOST_BUSY when in reset Hannes Reinecke
2013-10-23  8:51 ` [PATCH 3/8] advansys: Remove 'last_reset' references Hannes Reinecke
2013-10-23  8:51 ` [PATCH 4/8] tmscsim: Move 'last_reset' into host structure Hannes Reinecke
2013-10-23  8:51 ` [PATCH 5/8] dc395: Move 'last_reset' into internal " Hannes Reinecke
2013-10-23  8:51 ` [PATCH 6/8] scsi: remove check for 'resetting' Hannes Reinecke
2013-10-23  8:51 ` [PATCH 7/8] scsi: Add 'eh_deadline' to limit SCSI EH runtime Hannes Reinecke
2013-10-23  9:30   ` Ren Mingxin [this message]
2014-02-28  7:01   ` Ren Mingxin
2014-02-28  7:24     ` Hannes Reinecke
2013-10-23  8:51 ` [PATCH 8/8] scsi_error: Escalate to LUN reset if abort fails Hannes Reinecke
2013-10-23 13:53   ` Ewan Milne

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=52679751.2040309@cn.fujitsu.com \
    --to=renmx@cn.fujitsu.com \
    --cc=emilne@redhat.com \
    --cc=hare@suse.de \
    --cc=jbottomley@parallels.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 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.