Skip to content

RCU locking patches

Sven Eckelmann batman 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 3 repliesIn review
  2. v14 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9batman-adv: Introduce if_list_lock to protect if_listbatman-adv/hard-interface.c+15 -20 replies
2/9batman-adv: Protect update side of gw_listbatman-adv/gateway_client.c+9 -40 replies
3/9batman-adv: Always protect list_for_each_entry_rcu with RCUbatman-adv/routing.c+2 -00 replies
4/9batman-adv: Remove unneeded rcu_read_lockbatman-adv/gateway_client.c batman-adv/originator.c+0 -60 replies
5/9batman-adv: Use synchronize_rcu instead of call_rcubatman-adv/gateway_client.c batman-adv/hard-interface.c batman-adv/types.h+6 -180 replies
6/9batman-adv: Use refcnt to track usage count of gw_nodebatman-adv/gateway_client.c batman-adv/types.h+16 -20 replies
7/9batman-adv: Use refcnt to track usage count of batman_ifbatman-adv/hard-interface.c batman-adv/hard-interface.h batman-adv/types.h+17 -20 replies
8/9batman-adv: count election of gateway as referencebatman-adv/gateway_client.c+19 -30 replies
9/9batman-adv: count batman_if list queries as referencebatman-adv/bat_sysfs.c batman-adv/hard-interface.c+51 -150 replies
9/9batman-adv: count batman_if list queries as referencebatman-adv/bat_sysfs.c batman-adv/hard-interface.c+56 -156 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [B.A.T.M.A.N.] [PATCHv2 0/9] RCU locking patches

Hi,

i tried to prevent the race condition [1] that I mentioned yesterday. The patchset was also slightly extended to use a refcnt a little bit more.

Best regards,
Sven

[1] [email protected]

Sven Eckelmann (9):
batman-adv: Introduce if_list_lock to protect if_list
batman-adv: Protect update side of gw_list
batman-adv: Always protect list_for_each_entry_rcu with RCU
batman-adv: Remove unneeded rcu_read_lock
batman-adv: Use synchronize_rcu instead of call_rcu
batman-adv: Use refcnt to track usage count of gw_node
batman-adv: Use refcnt to track usage count of batman_if
batman-adv: count election of gateway as reference
batman-adv: count batman_if list queries as reference

 batman-adv/bat_sysfs.c      |   37 ++++++++++++++++++-------
 batman-adv/gateway_client.c |   64 ++++++++++++++++++++++++++++++-------------
 batman-adv/hard-interface.c |   59 +++++++++++++++++++++++++++++-----------
 batman-adv/hard-interface.h |   13 +++++++++
 batman-adv/originator.c     |    2 -
 batman-adv/routing.c        |    2 +
 batman-adv/types.h          |    4 +-
 7 files changed, 132 insertions(+), 49 deletions(-)