>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/