Re: [PATCH v6 1/9] smp: Run functions concurrently in smp_call_function_many_cond()

2021-03-01 Thread Nadav Amit
> On Mar 1, 2021, at 9:10 AM, Peter Zijlstra wrote: > > On Sat, Feb 20, 2021 at 03:17:04PM -0800, Nadav Amit wrote: >> +/* >> + * Choose the most efficient way to send an IPI. Note that the >> + * number of CPUs might be zero due to concurrent changes to the

Re: [PATCH v6 1/9] smp: Run functions concurrently in smp_call_function_many_cond()

2021-03-01 Thread Peter Zijlstra
On Sat, Feb 20, 2021 at 03:17:04PM -0800, Nadav Amit wrote: > + /* > + * Choose the most efficient way to send an IPI. Note that the > + * number of CPUs might be zero due to concurrent changes to the > + * provided mask. > + */ > +

[PATCH v6 1/9] smp: Run functions concurrently in smp_call_function_many_cond()

2021-02-20 Thread Nadav Amit
From: Nadav Amit Currently, on_each_cpu() and similar functions do not exploit the potential of concurrency: the function is first executed remotely and only then it is executed locally. Functions such as TLB flush can take considerable time, so this provides an opportunity for performance