Remove redundant rcu_read_lock/unlock() in spin_lock
Status from this message: Applied to cgroup/for-6.18.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest14 patches 9 repliesApplied
- v21 patch 3 repliesSuperseded
- v11 patch 7 repliesSuperseded
Patches in v3 Applied
Reviews trailers per patch
5 of 14 patches have a Reviewed-by or Acked-by.
| Patch | Waiman Long | Paul Fertser | Harald Freudenberger | Hanjun Guo | Toke Høiland-Jørgensen |
|---|---|---|---|---|---|
| 1/14 | R-b | ||||
| 2/14 | |||||
| 3/14 | |||||
| 4/14 | |||||
| 5/14 | A-b | ||||
| 6/14 | |||||
| 7/14 | |||||
| 8/14 | |||||
| 9/14 | A-b | ||||
| 10/14 | |||||
| 11/14 | R-b | ||||
| 12/14 | |||||
| 13/14 | |||||
| 14/14 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v3 00/14] 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.
[1] https://elixir.bootlin.com/linux/v6.17-rc5/source/Documentation/RCU/rcu_dereference.rst#L407
[2] https://lore.kernel.org/lkml/[email protected]/
[3] https://lwn.net/Articles/777036/
[4] https://lore.kernel.org/lkml/6435833a-bdcb-4114-b29d-28b7f436d47d@paulmck-laptop/
pengdonglin (14):
ACPI: APEI: Remove redundant rcu_read_lock/unlock() in spin_lock drm/i915/gt: Remove redundant rcu_read_lock/unlock() in spin_lock
fs: aio: Remove redundant rcu_read_lock/unlock() in spin_lock
nfs: Remove redundant rcu_read_lock/unlock() in spin_lock s390/pkey: Remove redundant rcu_read_lock/unlock() in spin_lock
ipc: Remove redundant rcu_read_lock/unlock() in spin_lock
yama: Remove redundant rcu_read_lock/unlock() in spin_lock
cgroup: Remove redundant rcu_read_lock/unlock() in spin_lock cgroup/cpuset: Remove redundant rcu_read_lock/unlock() in spin_lock
wifi: mac80211: Remove redundant rcu_read_lock/unlock() in spin_lock
net: ncsi: Remove redundant rcu_read_lock/unlock() in spin_lock
net: amt: Remove redundant rcu_read_lock/unlock() in spin_lock
net: bonding: Remove redundant rcu_read_lock/unlock() in spin_lock
wifi: ath9k: Remove redundant rcu_read_lock/unlock() in spin_lock
drivers/acpi/apei/ghes.c | 2 -- drivers/gpu/drm/i915/gt/intel_ring_submission.c | 2 -- drivers/net/amt.c | 8 -------- drivers/net/bonding/bond_3ad.c | 2 -- drivers/net/wireless/ath/ath9k/xmit.c | 2 -- drivers/s390/crypto/pkey_base.c | 3 --- fs/aio.c | 6 ++---- fs/nfs/callback_proc.c | 2 -- fs/nfs/nfs4state.c | 2 -- fs/nfs/pnfs.c | 12 +----------- fs/nfs/pnfs_dev.c | 4 ---- ipc/msg.c | 1 - ipc/sem.c | 1 - ipc/shm.c | 1 - ipc/util.c | 2 -- kernel/cgroup/cgroup.c | 2 -- kernel/cgroup/cpuset.c | 6 ------ kernel/cgroup/debug.c | 4 ---- net/mac80211/cfg.c | 2 -- net/mac80211/debugfs.c | 2 -- net/mac80211/debugfs_netdev.c | 2 -- net/mac80211/debugfs_sta.c | 2 -- net/mac80211/sta_info.c | 2 -- net/ncsi/ncsi-manage.c | 2 -- security/yama/yama_lsm.c | 4 ---- 25 files changed, 3 insertions(+), 75 deletions(-)
Signature · 1 line
2.34.1