On Thu, 24 Nov 2005, Mark Lord wrote:

> Jeff Garzik wrote:

> > The difference is between ide-cd.c and sr.c, most likely.
> 
> Agreed.  I get hundreds and hundreds of these when simply playing a DVD:
> 
> sr0: CDROM not ready.  Make sure there is a disc in the drive.
> 
> Nothing really wrong here, other than that the kernel is flooding
> my syslogs with messages that could really be left to the userspace
> application to decide about.

If any of you is interested in pursuing this, try out this patch.  It will 
tell what the offending command is and how it is getting submitted.  Once 
that is known, the generic cdrom layer or the sr driver can be changed to 
suppress these warnings.

Alan Stern



--- a/drivers/scsi/sr_ioctl.c   Mon Oct 31 10:12:20 2005
+++ b/drivers/scsi/sr_ioctl.c   Thu Nov 24 12:24:59 2005
@@ -139,8 +139,15 @@
                                        break;
                                }
                        }
-                       if (!cgc->quiet)
-                               printk(KERN_INFO "%s: CDROM not ready.  Make 
sure there is a disc in the drive.\n", cd->cdi.name);
+                       if (!cgc->quiet) {
+                               static int cnt = 0;
+                               if (cnt < 8) {
+                                       ++cnt;
+                                       printk(KERN_INFO "%s: CDROM not ready.  
Make sure there is a disc in the drive.\n", cd->cdi.name);
+                                       printk("cmd[0] = %d\n", cgc->cmd[0]);
+                                       dump_stack();
+                               }
+                       }
 #ifdef DEBUG
                        scsi_print_sense_hdr("sr", &sshdr);
 #endif



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to