* Gautham R Shenoy <ego@in.ibm.com> wrote:yes, easily so - just have a really long disk queue. Or really heavy mutex contention. i really think we should add a freezing hook to schedule too (no need to change anything else - just add a PF_FREEZE check into the schedule() function) - and add a wakeup method that moves TASK_UNINTERRUPTIBLE tasks to the runqueue but does not touch their task->state. ( the copy_process() handling is still needed, so that no new tasks without PF_FREEZE get created that could slip out of control. ) Such a wakeup will cause them to execute again but without disturbing their task->state value, at which point a second hook in schedule() could catch and freeze them. (and can restart the sleep afterwards, if the task is still TASK_UNINTERRUPTIBLE) i.e. two easy hooks in schedule() plus a try_to_wake_up() variant that does not touch p->state. In fact the second hook could be used instead of the first one so one might be enough. (I can code up the scheduler bits for you if that would be helpful.) Ingo -
| Benjamin Herrenschmidt | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Mariusz Kozlowski | [PATCH 03] drivers/sbus/char/bbc_envctrl.c: kmalloc + memset conversion to kzalloc |
| Yinghai Lu | [PATCH 02/16] x86: introduce nr_irqs for 64bit v3 |
git: | |
| Gerrit Renker | [PATCH 13/37] dccp: Deprecate Ack Ratio sysctl |
| James Morris | Re: [GIT]: Networking |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
