linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Mark Lord <liml@rtr.ca>
Cc: Jeff Garzik <jgarzik@pobox.com>, Mark Lord <mlord@pobox.com>,
	IDE/ATA development list <linux-ide@vger.kernel.org>,
	hare@suse.de
Subject: Re: libata total system lockup fix
Date: Fri, 05 Aug 2005 12:52:07 +0900	[thread overview]
Message-ID: <42F2E267.50402@gmail.com> (raw)
In-Reply-To: <42E50AE9.3000207@rtr.ca>

Mark Lord wrote:
>  >The problem with this patch is that is causes leaks, and doesn't 
> actually ready the devices because scsi_eh_ready_devs() is never called: 
> scsi_eh_abort_cmds() is guaranteed to fail out every time its called.
> 
> MMmm.. bummer if that's the case, but it does execute here
> on my machine about once every two seconds, continuously,
> for hours on end, and the DVD-RW drive still works when
> I eventually do place a disc into it later on.
> 
> I suppose the bug isn't seen more commonly because libata is
> the only (?) SCSI LLD that supplies it's own eh strategy function.
> Or are there other users of that interface now?
> 
> I'm off on holiday for the next while, but I'll check in on this
> again when I get back.  Perhaps the originator of this patch could
> chip in with some of the fixes, if you point out where the "leaks" are.
> 
>  >Ahha.. here's the header from the original email for this patch
>  >Subject: [PATCH] Fix SATA ATAPI error handling
>  >From: Hannes Reinecke <hare@suse.de>
>  >Date: Wed, 23 Mar 2005 16:28:16 +0100
>  >To: SCSI Mailing List <linux-scsi@vger.kernel.org>
>  >CC: linux-ide@vger.kernel.org, Jeff Garzik <jgarzik@pobox.com>,
>  >Jens Axboe <axboe@suse.de>, Kurt Garloff <garloff@suse.de>:
> 

  Hello, Mark Lord.

  I think I've hit similar scsi-eh lockup problem during development of 
new EH/NCQ helpers.  I currently don't remember where it exactly looped, 
but I recall that scmds jumped back and forth between two lists, one of 
which being eh_cmd_q which isn't cleared properly by SATA's strategy 
routine.  Anyways, I'm attaching an one liner quick fix, which I'm not 
sure if it will work or not.  Also, I'll post a combined patch of my new 
EH/NCQ helpers in a separate mail, which, hopefully, should be free of 
this issue.

  Please try out these two and let me know how they go.  Here's the one 
liner against v2.6.12.


diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -385,6 +385,7 @@ int ata_scsi_error(struct Scsi_Host *hos
          * appropriate place
          */
         host->host_failed--;
+       INIT_LIST_HEAD(&host->eh_cmd_q);

         DPRINTK("EXIT\n");
         return 0;

  reply	other threads:[~2005-08-05  3:52 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-25 13:47 libata total system lockup fix Mark Lord
2005-07-25 14:51 ` Jeff Garzik
2005-07-25 15:53   ` Mark Lord
2005-08-05  3:52     ` Tejun Heo [this message]
2005-08-05  4:01       ` Tejun Heo
2005-08-11 20:13         ` Jeff Garzik
2005-08-12  0:49           ` Tejun Heo
2005-08-12  2:22             ` Mark Lord
2005-08-12  2:38               ` Tejun Heo
2005-08-12  2:41                 ` Tejun Heo
2005-08-09 15:16       ` Mark Lord
2005-08-09 23:54         ` Tejun Heo
2005-08-10 14:16           ` Mark Lord
2005-08-10 21:24       ` Jeff Garzik
2005-08-19  0:46         ` Mark Lord
2005-08-19  3:21           ` Tejun Heo
2005-08-19  3:36             ` Mark Lord
2005-08-19  3:45               ` Tejun Heo
2005-08-19  4:01                 ` Mark Lord
2005-08-19  9:37               ` Erik Slagter
2005-08-19  9:35           ` Erik Slagter
2005-08-19 13:07             ` Mark Lord
2005-08-19 13:32               ` Bartlomiej Zolnierkiewicz
2005-08-19 13:37                 ` Bartlomiej Zolnierkiewicz
2005-09-03 22:58           ` Mark Lord
2005-09-03 23:06             ` Jeff Garzik

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=42F2E267.50402@gmail.com \
    --to=htejun@gmail.com \
    --cc=hare@suse.de \
    --cc=jgarzik@pobox.com \
    --cc=liml@rtr.ca \
    --cc=linux-ide@vger.kernel.org \
    --cc=mlord@pobox.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;
as well as URLs for NNTP newsgroup(s).