Re: sys_wait4(): put_user() with current->state!=TASK_RUNNING

From: Andrea Arcangeli (andrea@suse.de)
Date: Wed Jan 12 2000 - 13:55:32 EST


On Wed, 12 Jan 2000, Manfred Spraul wrote:

>sys_wait4() calls put_user() with current->state == TASK_INTERRUPTIBLE.
>other functions call get_user() with this current->state.
>If put_user() must page-in the target page, then it would return with
>current->state == TASK_RUNNING, correct?

Yes.

>But: is it guaranteed that the function will return? In the worst case,
>there is no wait-queue that would force a wake-up.

The waitqueue that will guarantee a wakeup are bh->b_wait and page->wait.

Andrea

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:21 EST