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
--gr/z0/N6AeWAPJVB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ide-cd-stat
--- /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; }
--gr/z0/N6AeWAPJVB-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/