bpf: remove unnecessary rcu_read_{lock,unlock}() in multi-uprobe attach logic
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 21 May 2024 16:33:58 +0000 (09:33 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 25 May 2024 17:46:02 +0000 (10:46 -0700)
commit4a8f635a60540888dab3804992e86410360339c8
treed5616c72bde13807d4ff75fab5acfa3c5371143b
parent46ba0e49b64232adac35a2bc892f1710c5b0fb7f
bpf: remove unnecessary rcu_read_{lock,unlock}() in multi-uprobe attach logic

get_pid_task() internally already calls rcu_read_lock() and
rcu_read_unlock(), so there is no point to do this one extra time.

This is a drive-by improvement and has no correctness implications.

Acked-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240521163401.3005045-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/trace/bpf_trace.c