wifi: wilc1000: fix RCU usage
Get series with b4
b4 am [email protected] change-id 20240131-wilc_fix_rcu_usage-e60ecdffee25Versions newest first
- v1 Latest4 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | wifi: wilc1000: split deeply nested RCU list traversal in dedicated helperdrivers/ | +14 | 1 reply | |
| 2/4 | wifi: wilc1000: use SRCU instead of RCU for vif list traversaldrivers/ drivers/ drivers/ +2 more | +16 | 0 replies | |
| 3/4 | wifi: wilc1000: fix declarations orderingdrivers/ drivers/ | +11 | 0 replies | |
| 4/4 | wifi: wilc1000: add missing read critical sections around vif list traversaldrivers/ drivers/ | +35 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] wifi: wilc1000: fix RCU usage
This small series aims to fix multiple warnings observed when enabling CONFIG_PROVE_RCU_LIST:
- add missing locks to create corresponding critical read sections
- fix mix between RCU and SRCU API usage
While at it, since SRCU API is already in use in the driver, any fix done on RCU usage was also done with the SRCU variant of RCU API. I do not really get why we are using SRCU in this driver instead of classic RCU, as it seems to be done in any other wireless driver. My understanding is that primary SRCU use case is for compatibility with realtime kernel, which needs to be preemptible everywhere. Has the driver been really developped with this constraint in mind ?
If you have more details about this, feel free to educate me.
To: <[email protected]>
Cc: Ajay Singh <[email protected]>
Cc: Claudiu Beznea <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: <[email protected]>
---
Ajay Singh (1):
wifi: wilc1000: add missing read critical sections around vif list traversal
Alexis Lothoré (3):
wifi: wilc1000: split deeply nested RCU list traversal in dedicated helper
wifi: wilc1000: use SRCU instead of RCU for vif list traversal
wifi: wilc1000: fix declarations ordering
drivers/net/wireless/microchip/wilc1000/cfg80211.c | 2 +- drivers/net/wireless/microchip/wilc1000/hif.c | 70 ++++++++++++---------- drivers/net/wireless/microchip/wilc1000/netdev.c | 51 +++++++++------- drivers/net/wireless/microchip/wilc1000/netdev.h | 6 ++ drivers/net/wireless/microchip/wilc1000/wlan.c | 2 +- 5 files changed, 75 insertions(+), 56 deletions(-)
---
base-commit: f4adde5c2f875c491670bc19f6abae91ae364ed6
change-id: 20240131-wilc_fix_rcu_usage-e60ecdffee25
Best regards,
Signature · 3 lines
Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com