From: Jens Axboe <axboe@suse.de>
To: "Udo A. Steinberg" <reality@delusion.de>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: 2.5.1-pre7 ide-cd module
Date: Sat, 8 Dec 2001 20:44:03 +0100 [thread overview]
Message-ID: <20011208194403.GY11567@suse.de> (raw)
In-Reply-To: <3C1235C4.BC20AC8E@wanadoo.fr> <20011208161847.GK11567@suse.de> <3C126634.F3BBC941@delusion.de> <20011208191515.GX11567@suse.de> <3C1269E1.53347A2A@delusion.de>
In-Reply-To: <3C1269E1.53347A2A@delusion.de>
[-- Attachment #1: Type: text/plain, Size: 517 bytes --]
On Sat, Dec 08 2001, Udo A. Steinberg wrote:
> Jens Axboe wrote:
> >
> > Yes please -- try 2.5.1-pre1 and 2.5.1-pre2, it probably broke there.
>
> Indeed. pre1 works, pre2 doesn't:
Ah, I think I see the problem. Very first mode page capabilities probe
fails, which is expected and therefore retried. But now we've killed the
correct length of command, which should only be done on success. The
second time you load ide-cd, it succeeds on first probe and thus works.
Attached patch should fix it.
--
Jens Axboe
[-- Attachment #2: ide-cd-stat --]
[-- Type: text/plain, Size: 359 bytes --]
--- /opt/kernel/linux-2.5.1-pre7/drivers/ide/ide-cd.c Fri Dec 7 20:38:44 2001
+++ drivers/ide/ide-cd.c Sat Dec 8 14:39:43 2001
@@ -2145,7 +2145,8 @@
pc.timeout = cgc->timeout;
pc.sense = cgc->sense;
cgc->stat = cdrom_queue_packet_command(drive, &pc);
- cgc->buflen -= pc.buflen;
+ if (!cgc->stat)
+ cgc->buflen -= pc.buflen;
return cgc->stat;
}
next prev parent reply other threads:[~2001-12-08 19:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-08 15:46 2.5.1-pre7 ide-cd module Pierre Rousselet
2001-12-08 16:18 ` Jens Axboe
2001-12-08 16:38 ` Pierre Rousselet
2001-12-08 16:45 ` Jens Axboe
2001-12-08 16:48 ` Pierre Rousselet
2001-12-08 16:54 ` Jens Axboe
2001-12-08 17:32 ` Pierre Rousselet
2001-12-08 19:12 ` Udo A. Steinberg
2001-12-08 19:15 ` Jens Axboe
2001-12-08 19:28 ` Udo A. Steinberg
2001-12-08 19:44 ` Jens Axboe [this message]
2001-12-08 19:53 ` Udo A. Steinberg
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=20011208194403.GY11567@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=reality@delusion.de \
/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