summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpengdonglin <pengdonglin@xiaomi.com>2025-09-16 07:47:35 +0300
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>2026-05-01 00:24:06 +0300
commitc4f518736472c8cfbf1d304e01c631babd2bbf34 (patch)
treeec98f15c532e362c450e5f7c7396dc896d0b3acc /include
parent7baf5857e15d722776898510a10546d6b2f18645 (diff)
downloadlinux-c4f518736472c8cfbf1d304e01c631babd2bbf34.tar.xz
wifi: ath9k: Remove redundant rcu_read_lock/unlock() in spin_lock
Since commit a8bb74acd8efe ("rcu: Consolidate RCU-sched update-side function definitions") there is no difference between rcu_read_lock(), rcu_read_lock_bh() and rcu_read_lock_sched() in terms of RCU read section and the relevant grace period. That means that spin_lock(), which implies rcu_read_lock_sched(), also implies rcu_read_lock(). There is no need no explicitly start a RCU read section if one has already been started implicitly by spin_lock(). Simplify the code and remove the inner rcu_read_lock() invocation. Cc: Toke <toke@toke.dk> Cc: Jakub Kicinski <kuba@kernel.org> Signed-off-by: pengdonglin <pengdonglin@xiaomi.com> Signed-off-by: pengdonglin <dolinux.peng@gmail.com> Acked-by: Toke Høiland-Jørgensen <toke@toke.dk> Link: https://patch.msgid.link/20250916044735.2316171-15-dolinux.peng@gmail.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions