Re: logs full of chatty IDE cdrom

From: Jens Axboe (axboe@suse.de)
Date: Wed May 14 2003 - 03:16:56 EST


On Sat, May 10 2003, Dr. David Alan Gilbert wrote:
> Hi,
> I'm not sure but this seems to be a lot worse in 2.5.x for some
> reason; my logs are full of I/O errors, not ready's and other errors from
> my CDROM drive that is playing audio CDs; I suspect at least some of it
> is due to kscd trying to figure out if there is a CD in an empty drive.

This should fix it.

===== drivers/ide/ide-cd.c 1.44 vs edited =====
--- 1.44/drivers/ide/ide-cd.c Wed May 7 19:34:30 2003
+++ edited/drivers/ide/ide-cd.c Wed May 14 10:16:09 2003
@@ -2070,6 +2070,7 @@
 
         req.sense = sense;
         req.cmd[0] = GPCMD_TEST_UNIT_READY;
+ req.flags |= REQ_QUIET;
 
 #if ! STANDARD_ATAPI
         /* the Sanyo 3 CD changer uses byte 7 of TEST_UNIT_READY to

-- 
Jens Axboe

- 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/



This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:50 EST