Skip to content

rcu - removing superfluous rcu_read_lock_held check

Jiri Olsa containers kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cgroup - removing superfluous rcu_read_lock_held checkinclude/linux/cgroup.h kernel/cgroup.c+2 -54 replies
2/3kernel,cred,kvm,security - removing superfluous rcu_read_lock_held checkinclude/linux/cred.h include/linux/fdtable.h include/linux/kvm_host.h +4 more+0 -83 replies
3/3net - removing superfluous rcu_read_lock_held checkinclude/linux/rtnetlink.h include/net/sock.h net/mac80211/sta_info.c +2 more+4 -124 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDavid S. MillerLi Zefan
1/3R-b R-b R-b
2/3
3/3A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] rcu - removing superfluous rcu_read_lock_held check

hi,

the rcu_dereference_check is defined as

  #define rcu_dereference_check(p, c) \
     __rcu_dereference_check((p), rcu_read_lock_held() || (c), __rcu)

so the caller does not need to specify rcu_read_lock_held() condition.

Several places in kernel are spcifying rcu_read_lock_held as rcu_dereference_check condition parameter. I separated them into 3 patches:

1/3 - cgroup - removing superfluous rcu_read_lock_held check
2/3 - kernel,cred,kvm,security - removing superfluous rcu_read_lock_held check 3/3 - net - removing superfluous rcu_read_lock_held check

sry if I might missed or added somebody wrongly to recipients

wbr,
jirka

---
 include/linux/cgroup.h             |    1 -
 include/linux/cred.h               |    1 -
 include/linux/fdtable.h            |    1 -
 include/linux/kvm_host.h           |    1 -
 include/linux/rtnetlink.h          |    3 +--
 include/net/sock.h                 |    3 +--
 kernel/cgroup.c                    |    6 ++----
 kernel/exit.c                      |    1 -
 kernel/pid.c                       |    1 -
 kernel/rcutorture.c                |    2 --
 net/mac80211/sta_info.c            |    4 ----
 net/netlabel/netlabel_domainhash.c |    3 +--
 net/netlabel/netlabel_unlabeled.c  |    3 +--
 security/keys/keyring.c            |    1 -
 14 files changed, 6 insertions(+), 25 deletions(-)