]> git.neil.brown.name Git - history.git/commit
[PATCH] set TASK_RUNNING in cond_resched()
authorAndrew Morton <akpm@zip.com.au>
Thu, 4 Jul 2002 15:30:54 +0000 (08:30 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 4 Jul 2002 15:30:54 +0000 (08:30 -0700)
commitb2bd3a26bbf30c69062d45de4622e7e5b412ad16
tree5ef9e426cd30db600022b66456805d17b9619849
parentf42e6ed8b8c71b3cdc1f0ed7c3f8d2f0c0ec6427
[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.
include/linux/sched.h
kernel/ksyms.c
kernel/sched.c