http://bugzilla.kernel.org/show_bug.cgi?id=12945 Summary: SCSI Generic (sg): BUG: sleeping function called from invalid context Product: SCSI Drivers Version: 2.5 Kernel Version: 2.6.28.9 Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Other AssignedTo: scsi_drivers-other@xxxxxxxxxxxxxxxxxxxx ReportedBy: txtoxtox285@xxxxxxxxxxxxxx Regression: No Created an attachment (id=20685) --> (http://bugzilla.kernel.org/attachment.cgi?id=20685) Stack trace on program kill (2.6.28.9) I am experimenting with CD audio extraction. I use the SCSI Generic driver for this. My test program uses read() and write() (instead of ioctl) to send requests to the driver and receive responses. I use SG_FLAG_DIRECT_IO. When I kill my program (because I don't want to wait until it has ripped the entire CD), I am often rewarded with messages like "BUG: sleeping function called from invalid context at linux-2.6.28.9/include/linux/pagemap.h:347". I have attached typical stack trace. Another case when I hit this BUG is when I set a time out and the CD drive doesn't respond fast enough. A stack trace is attached. -- Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html