Re: [PATCH 08/24] proc: pick out a function to iterate task children

2015-07-18 Thread Oleg Nesterov
On 07/17, Andrew Vagin wrote: > > On Tue, Jul 14, 2015 at 08:02:35PM +0200, Oleg Nesterov wrote: > > On 07/06, Andrey Vagin wrote: > > > > > > -static struct pid * > > > -get_children_pid(struct inode *inode, struct pid *pid_prev, loff_t pos) > > > +static struct task_struct * > > > +task_next_chil

Re: [PATCH 08/24] proc: pick out a function to iterate task children

2015-07-17 Thread Andrew Vagin
On Tue, Jul 14, 2015 at 08:02:35PM +0200, Oleg Nesterov wrote: > On 07/06, Andrey Vagin wrote: > > > > -static struct pid * > > -get_children_pid(struct inode *inode, struct pid *pid_prev, loff_t pos) > > +static struct task_struct * > > +task_next_child(struct task_struct *parent, struct task_stru

Re: [PATCH 08/24] proc: pick out a function to iterate task children

2015-07-14 Thread Oleg Nesterov
On 07/06, Andrey Vagin wrote: > > -static struct pid * > -get_children_pid(struct inode *inode, struct pid *pid_prev, loff_t pos) > +static struct task_struct * > +task_next_child(struct task_struct *parent, struct task_struct *prev, > unsigned int pos) > { I won't really argue, just a question.

[PATCH 08/24] proc: pick out a function to iterate task children

2015-07-06 Thread Andrey Vagin
This function will be used in task_diag. Signed-off-by: Andrey Vagin --- fs/proc/array.c | 67 ++--- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/fs/proc/array.c b/fs/proc/array.c index ce065cf..52c4a7b 100644 --- a/fs/proc/a