diff options
| author | Rik van Riel <[email protected]> | 2025-07-02 17:52:54 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-07-06 09:57:39 +0000 |
| commit | 946a7281982530d333eaee62bd1726f25908b3a9 (patch) | |
| tree | 0b742ecc393a925eb41d7fbb9f787a2ada4d1168 /net/unix/af_unix.c | |
| parent | smp: Defer check for local execution in smp_call_function_many_cond() (diff) | |
| download | kernel-946a7281982530d333eaee62bd1726f25908b3a9.tar.gz kernel-946a7281982530d333eaee62bd1726f25908b3a9.zip | |
smp: Wait only if work was enqueued
Whenever work is enqueued for a remote CPU, smp_call_function_many_cond()
may need to wait for that work to be completed. However, if no work is
enqueued for a remote CPU, because the condition func() evaluated to false
for all CPUs, there is no need to wait.
Set run_remote only if work was enqueued on remote CPUs.
Document the difference between "work enqueued", and "CPU needs to be
woken up"
Suggested-by: Jann Horn <[email protected]>
Signed-off-by: Rik van Riel <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Yury Norov (NVIDIA) <[email protected]>
Link: https://lore.kernel.org/all/20250703203019.11331ac3@fangorn
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
