All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erik Andersen <andersen@codepoet.org>
To: Alan Cox <alan@redhat.com>
Cc: Andre Hedrick <andre@linux-ide.org>, linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.20-pre2-ac6
Date: Thu, 22 Aug 2002 10:27:05 -0600	[thread overview]
Message-ID: <20020822162705.GA7510@codepoet.org> (raw)
In-Reply-To: <200208221606.g7MG6uF24237@devserv.devel.redhat.com>

On Thu Aug 22, 2002 at 12:06:56PM -0400, Alan Cox wrote:
> > Erm Alan, what happened boss ?
> > Lemme resend that jewel.
> 
> I dont think you ever sent me code with that one included


I believe it was supposed to be this patch I wrote up a while
back.  Though I can't imagine it needing a config option...

--- orig/drivers/ide/ide-cd.c	Sat Aug 10 23:40:44 2002
+++ linux-2.4.19/drivers/ide/ide-cd.c	Sat Aug 10 23:40:44 2002
@@ -768,6 +768,11 @@
 			   for other errors. */
 			*startstop = DRIVER(drive)->error(drive, "cdrom_decode_status", stat);
 			return 1;
+		} else if (sense_key == MEDIUM_ERROR) {
+			/* No point in re-trying a zillion times on a bad 
+			 * sector...  If we got here the error is not correctable */
+			ide_dump_status (drive, "media error (bad sector)", stat);
+			cdrom_end_request(drive, 0);
 		} else if ((++rq->errors > ERROR_MAX)) {
 			/* We've racked up too many retries.  Abort. */
 			cdrom_end_request(drive, 0);

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

  reply	other threads:[~2002-08-22 16:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-21 20:25 Linux 2.4.20-pre2-ac6 Alan Cox
2002-08-21 23:44 ` Erik Andersen
2002-08-21 23:49   ` Andre Hedrick
2002-08-21 23:58     ` Erik Andersen
2002-08-22  1:07       ` Andre Hedrick
2002-08-22  1:18         ` Erik Andersen
2002-08-22  1:29           ` Andre Hedrick
2002-08-22 16:06             ` Alan Cox
2002-08-22 16:27               ` Erik Andersen [this message]
2002-08-22 17:21                 ` Andre Hedrick
2002-08-21 23:53   ` Alan Cox
2002-08-22  0:01     ` Erik Andersen
     [not found]   ` <Pine.LNX.4.10.10208211648300.10353-100000@master.linux-ide .org>
2002-08-22  7:00     ` Rudmer van Dijk
2002-08-22  8:05       ` Andre Hedrick
2002-08-22 15:57         ` Rudmer van Dijk
2002-08-22 11:31 ` Gregoire Favre

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=20020822162705.GA7510@codepoet.org \
    --to=andersen@codepoet.org \
    --cc=alan@redhat.com \
    --cc=andre@linux-ide.org \
    --cc=linux-kernel@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.