All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <tj@kernel.org>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: [PATCH #upstream-fixes] libata-sff: kill spurious WARN_ON() in ata_hsm_move()
Date: Mon, 08 Sep 2008 12:16:20 -0400	[thread overview]
Message-ID: <48C54FD4.6000001@garzik.org> (raw)
In-Reply-To: <48B8075F.9040805@kernel.org>

Tejun Heo wrote:
> On HSM_ST_ERR, ata_hsm_move() triggers WARN_ON() if AC_ERR_DEV or
> AC_ERR_HSM is not set.  PHY events may trigger HSM_ST_ERR with other
> error codes and, with or without it, there just isn't much reason to
> do WARN_ON() on it.  Even if error code is not set there, core EH
> logic won't have any problem dealing with the error condition.
> 
> OSDL bz#11065 reports this problem.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> ---
>  drivers/ata/libata-sff.c |    5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
> index 304fdc6..2a4c516 100644
> --- a/drivers/ata/libata-sff.c
> +++ b/drivers/ata/libata-sff.c
> @@ -1315,11 +1315,6 @@ fsm_start:
>  		break;
>  
>  	case HSM_ST_ERR:
> -		/* make sure qc->err_mask is available to
> -		 * know what's wrong and recover
> -		 */
> -		WARN_ON(!(qc->err_mask & (AC_ERR_DEV | AC_ERR_HSM)));
> -
>  		ap->hsm_task_state = HSM_ST_IDLE;
>  

applied



      reply	other threads:[~2008-09-08 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-29 14:27 [PATCH #upstream-fixes] libata-sff: kill spurious WARN_ON() in ata_hsm_move() Tejun Heo
2008-09-08 16:16 ` Jeff Garzik [this message]

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=48C54FD4.6000001@garzik.org \
    --to=jeff@garzik.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=tj@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.