diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-07-04 08:30:54 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-04 08:30:54 -0700 |
| commit | b2bd3a26bbf30c69062d45de4622e7e5b412ad16 (patch) | |
| tree | 5ef9e426cd30db600022b66456805d17b9619849 /kernel/suspend.c | |
| parent | f42e6ed8b8c71b3cdc1f0ed7c3f8d2f0c0ec6427 (diff) | |
[PATCH] set TASK_RUNNING in cond_resched()
do_select() does set_current_state(TASK_INTERRUPTIBLE) then calls
__pollwait() which calls __get_free_page() and the cond_resched() which
I added to the pagecache reclaim code never returns.
The patch makes cond_resched() more useful by setting current->state to
TASK_RUNNING before scheduling.
Diffstat (limited to 'kernel/suspend.c')
0 files changed, 0 insertions, 0 deletions
