]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Avoid synchronize_rcu_tasks_rude() call when not necessary
authorNicolas Saenz Julienne <nsaenzju@redhat.com>
Wed, 21 Jul 2021 11:47:26 +0000 (13:47 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 23 Jul 2021 12:45:53 +0000 (08:45 -0400)
commit02089ff4321e572d3aecf94b9faa77d0b4a290f7
tree23ab37016b6548a6acd613d10a224243b9dc8cfd
parent16976e6e1399b137163a620e7cb8b036c68c2e06
ftrace: Avoid synchronize_rcu_tasks_rude() call when not necessary

synchronize_rcu_tasks_rude() triggers IPIs and forces rescheduling on
all CPUs. It is a costly operation and, when targeting nohz_full CPUs,
very disrupting (hence the name). So avoid calling it when 'old_hash'
doesn't need to be freed.

Link: https://lkml.kernel.org/r/20210721114726.1545103-1-nsaenzju@redhat.com
Signed-off-by: Nicolas Saenz Julienne <nsaenzju@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c