Skip to contentSkip to conversation

New: Polling of IDE CD status can make machine unresponsive

Bug 11497 [email protected] 1 participant 2 messages Sep 4, 2008 – Sep 5, 2008 libata

lore
Share & tools
lore
#0 lore raw

http://bugzilla.kernel.org/show_bug.cgi?id=11497

           Summary: Polling of IDE CD status can make machine unresponsive
           Product: IO/Storage
           Version: 2.5
     KernelVersion: 2.6.27-rc5
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IDE
        AssignedTo: [email protected]
        ReportedBy: [email protected]

Whenever a device handled by ide-cd is opened, the driver polls the device status for up to 5 seconds waiting for a good status value. Since this is done in the open operation, it is holding the BKL all this time. For unknown reasons (possibly another driver bug) the DVD-ROM drives in some machines here can get into a state where they always return status 0xd0 and ide-cd always polls for the full 5 seconds.

hal-storage-daemon appears to open CD-ROM devices every 5 seconds, with the result that in this state all other operations requiring the BKL can only run at 5 second intervals. This is possibly bad behaviour on HAL's part, but the driver also seems to be at fault in holding the BKL for so long.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#1 lore raw

[Bug 11497] Polling of IDE CD status can make machine unresponsive

http://bugzilla.kernel.org/show_bug.cgi?id=11497

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
         AssignedTo|[email protected] |[email protected]
             Status|NEW                         |ASSIGNED

------- Comment #1 from [email protected] 2008-09-05 06:19 ------- Hi,

can you send me your boot log and the correct syslog with the exact error messages you see and also your kernel .config. Also, ide-cd doesn't take the BKL in its code so it has to be somewhere in layers above it. It will be most helpful, of course, if you could bisect it :).

P.S. Same goes for bug 11498, please send me the syslog output and .config files.

Thanks!

Signature · 4 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the assignee for the bug, or are watching the assignee.