Re: [RFC] perf/core: Fixes hung issue on perf stat command during cpu hotplug

2020-08-26 Thread kajoljain
On 8/26/20 6:51 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, Aug 26, 2020 at 03:02:36PM +0530, Kajol Jain escreveu: >> Commit 2ed6edd33a21 ("perf: Add cond_resched() to task_function_call()") >> added assignment of ret value as -EAGAIN in case function >> call to 'smp_call_function_single' fail

Re: [RFC] perf/core: Fixes hung issue on perf stat command during cpu hotplug

2020-08-26 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 26, 2020 at 03:02:36PM +0530, Kajol Jain escreveu: > Commit 2ed6edd33a21 ("perf: Add cond_resched() to task_function_call()") > added assignment of ret value as -EAGAIN in case function > call to 'smp_call_function_single' fails. > For non-zero ret value, it did > 'ret = !ret ? data.re

[RFC] perf/core: Fixes hung issue on perf stat command during cpu hotplug

2020-08-26 Thread Kajol Jain
Commit 2ed6edd33a21 ("perf: Add cond_resched() to task_function_call()") added assignment of ret value as -EAGAIN in case function call to 'smp_call_function_single' fails. For non-zero ret value, it did 'ret = !ret ? data.ret : -EAGAIN;', which always assign -EAGAIN to ret and make second if cond