no set_current_state()
Am Dienstag, 13. Juli 2004 19:52 schrieb Nishanth Aravamudan:
Quoted 7 lines
Hi,
In continuing to replace, where appropriate, code with
msleep()calls, I ran across the following file(s) / function(s), which do not invokeset_current_state()beforeschedule_timeout(), which causes the latter to return immediately:
Quoted 5 lines
drivers/usb/media/dabusb.c::dabusb_open()
If someone could tell me which state (
TASK_INTERRUPTIBLEorTASK_UNINTERRUPTIBLE) is desired, I can fix this and perhaps replace the calls withmsleep().
TASK_INTERRUPTIBLE. It checks for pending signals. While you are at it, try to move the check for nonblocking outside of the loop.
HTH
Oliver
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Am Dienstag, 13. Juli 2004 19:54 schrieb Nishanth Aravamudan:
Quoted 8 lines
Hi,
In continuing to replace, where appropriate, code with
msleep()calls, I ran across the following file(s) / function(s), which do not invokeset_current_state()beforeschedule_timeout(), which causes the latter to return immediately:drivers/usb/media/ov511.c::init_ov_sensor()
Should use msleep.
Quoted 1 line
drivers/usb/media/ov511.c::ov7xx0_configure()
also msleep
HTH
Oliver
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Am Dienstag, 13. Juli 2004 19:57 schrieb Nishanth Aravamudan:
Quoted 8 lines
Hi,
In continuing to replace, where appropriate, code with
msleep()calls, I ran across the following file(s) / function(s), which do not invokeset_current_state()beforeschedule_timeout(), which causes the latter to return immediately:drivers/usb/misc/tiglusb.c::tiglusb_open()
TASK_INTERRUPTIBLE
HTH
Oliver
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Am Dienstag, 13. Juli 2004 19:52 schrieb Nishanth Aravamudan:
Quoted 7 lines
Hi,
In continuing to replace, where appropriate, code with
msleep()calls, I ran across the following file(s) / function(s), which do not invokeset_current_state()beforeschedule_timeout(), which causes the latter to return immediately:
Quoted 5 lines
drivers/usb/media/dabusb.c::dabusb_open()
If someone could tell me which state (
TASK_INTERRUPTIBLEorTASK_UNINTERRUPTIBLE) is desired, I can fix this and perhaps replace the calls withmsleep().
TASK_INTERRUPTIBLE. It checks for pending signals. While you are at it, try to move the check for nonblocking outside of the loop.
HTH
Oliver
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Am Dienstag, 13. Juli 2004 19:54 schrieb Nishanth Aravamudan:
Quoted 8 lines
Hi,
In continuing to replace, where appropriate, code with
msleep()calls, I ran across the following file(s) / function(s), which do not invokeset_current_state()beforeschedule_timeout(), which causes the latter to return immediately:drivers/usb/media/ov511.c::init_ov_sensor()
Should use msleep.
Quoted 1 line
drivers/usb/media/ov511.c::ov7xx0_configure()
also msleep
HTH
Oliver
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Am Dienstag, 13. Juli 2004 19:57 schrieb Nishanth Aravamudan:
Quoted 8 lines
Hi,
In continuing to replace, where appropriate, code with
msleep()calls, I ran across the following file(s) / function(s), which do not invokeset_current_state()beforeschedule_timeout(), which causes the latter to return immediately:drivers/usb/misc/tiglusb.c::tiglusb_open()
TASK_INTERRUPTIBLE
HTH
Oliver
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 3 lines · Nishanth Aravamudan
drivers/usb/gadget/pxa2xx_udc.c::udc_enable()
If someone could tell me which state (
TASK_INTERRUPTIBLEorTASK_UNINTERRUPTIBLE) is desired, I can fix this and perhaps replace the calls withmsleep().
That'd make a fine msleep(), thanks.
- Dave
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 10 lines · On Tue, 13 Jul 2004 20:57:14 +0200 Oliver Neukum <[email protected]> wrote:
Am Dienstag, 13. Juli 2004 19:57 schrieb Nishanth Aravamudan:
Quoted 6 lines
In continuing to replace, where appropriate, code with
msleep()calls, I ran across the following file(s) / function(s), which do not invokeset_current_state()beforeschedule_timeout(), which causes the latter to return immediately:drivers/usb/misc/tiglusb.c::tiglusb_open()
TASK_INTERRUPTIBLE
In this case, Oliver is right. However, do not use TASK_INTERRUPTIBLE in any path which is called from ->release(). When an application is killed with ^C and is exiting, schedule() returns immediately if called so, so the end result would be a fix with no effect.
-- Pete
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors