Re: [PATCH 1/3] perf: Do not POLLHUP event if it has children

Peter Zijlstra
2014-09-14T09:14:46Z

On Fri, Sep 12, 2014 at 01:18:26PM +0200, Jiri Olsa wrote:
> Currently we return POLLHUP in event polling if the monitored
> process is done, but we didn't consider possible children,
> that might be still running and producing data.
>
> Before returning POLLHUP making sure that
> 1) the monitored task has exited and that
> 2) we don't have any children to monitor
>
> Also adding parent wakeup when the child event is gone.
>
> Suggested-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Cc: Stephane Eranian <eranian@google.com>
> Signed-off-by: Jiri Olsa <jolsa@kernel.org>
> ---

Thanks Jiri (for all three patches)!