Re: [PATCH 1/2] do_wait reorganization

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Andrew Morton <akpm@...>, Oleg Nesterov <oleg@...>, <linux-kernel@...>
Date: Sunday, March 30, 2008 - 11:27 pm

> I also wonder if you really need both "int *retval" and the return value. 

No.


Yes.


You listed the three possibilities for eligible_child().
For wait_consider_task(), there are four possibilities:

 - all done, with error
 - this thread was not eligible, look for another; return -ECHILD if none ready
 - this thread was eligible but is not ready; return 0 or block if none ready
 - all done, this thread is ready; return its pid

I'll post another version that I think you'll like a little better.


Thanks,
Roland
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] do_wait reorganization, Roland McGrath, (Fri Mar 28, 11:34 pm)
Re: [PATCH 1/2] do_wait reorganization, Linus Torvalds, (Sat Mar 29, 12:16 pm)
[PATCH 1/3] do_wait reorganization, Roland McGrath, (Sun Mar 30, 11:57 pm)
Re: [PATCH 1/3] do_wait reorganization, Oleg Nesterov, (Mon Mar 31, 4:51 am)
Re: [PATCH 1/3] do_wait reorganization, Roland McGrath, (Mon Mar 31, 4:29 pm)
Re: [PATCH 1/3] do_wait reorganization, Oleg Nesterov, (Mon Mar 31, 4:07 pm)
[PATCH 2/3] ptrace children revamp, Roland McGrath, (Sun Mar 30, 11:59 pm)
Re: [PATCH 2/3] ptrace children revamp, Oleg Nesterov, (Mon Mar 31, 5:12 am)
Re: [PATCH 1/2] do_wait reorganization, Roland McGrath, (Sun Mar 30, 11:27 pm)
Re: [PATCH 1/2] do_wait reorganization, Oleg Nesterov, (Sat Mar 29, 6:35 am)
Re: [PATCH 1/2] do_wait reorganization, Roland McGrath, (Sun Mar 30, 11:54 pm)
[PATCH 2/2] ptrace children revamp, Roland McGrath, (Fri Mar 28, 11:35 pm)
Re: [PATCH 2/2] ptrace children revamp, Oleg Nesterov, (Sat Mar 29, 6:39 am)
Re: [PATCH 2/2] ptrace children revamp, Oleg Nesterov, (Sat Mar 29, 9:10 am)
Re: [PATCH 2/2] ptrace children revamp, Roland McGrath, (Fri Apr 4, 5:00 pm)
Re: [PATCH 2/2] ptrace children revamp, Oleg Nesterov, (Sat Apr 5, 10:06 am)
Re: [PATCH 2/2] ptrace children revamp, Roland McGrath, (Wed Apr 9, 4:15 pm)
Re: [PATCH 2/2] ptrace children revamp, Oleg Nesterov, (Sun Apr 13, 10:24 am)
Re: [PATCH 2/2] ptrace children revamp, Roland McGrath, (Mon Apr 14, 9:41 pm)
Re: [PATCH 2/2] ptrace children revamp, Oleg Nesterov, (Sat Mar 29, 10:37 am)