Re: wait queue process state
William Lee Irwin III (wli@holomorphy.com)
Mon, 27 May 2002 08:49:50 -0700
On Mon, May 27, 2002 at 05:11:23PM -0400, Joseph Cordina wrote:
> The reason I am asking is that I am working on scheduler activations
> which allow new kernel threads to be created when a kernel thread blocks
> inside the kernel. Yet this only works for INTERRUPTIBLE processes, I
> was thinking of making it work also for NONINTERRUPTIBLE processes. Just
> wondering if this would have any repurcusions. Also when a process
> generates a page fault which causes a page to be retreived from the
> filesystem, it such a process placed in the wait queue as
> NONINTERRUPTIBLE also ?
filemap_nopage() from mm/filemap.c does wait_on_page() or some variant
thereof (2.5 has wait_on_page_locked()) in several places, and it's
placed into the TASK_UNINTERRUPTIBLE state while doing so.
Cheers,
Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/