[PATCH 0/2] wifi: wilc1000: use RCU instead of SRCU

From: Alexis Lothoré
Date: Wed Apr 10 2024 - 03:11:10 EST


This small series is a follow-up to [1] which fixed pending SRCU warnings
in wilc1000 driver, and raised the question of why SRCU was used in the
first place and if it is really needed. Since no technical answer has been
provided in favor of keeping SRCU, switch back the driver to classical RCU to
simplify RCU usage.

[1] https://lore.kernel.org/linux-wireless/20240215-wilc_fix_rcu_usage-v1-0-f610e46c6f82@xxxxxxxxxxx/

Signed-off-by: Alexis Lothoré <alexis.lothore@xxxxxxxxxxx>
---
Alexis Lothoré (2):
wifi: wilc1000: set atomic flag on kmemdup in srcu critical section
wifi: wilc1000: convert list management to RCU

drivers/net/wireless/microchip/wilc1000/cfg80211.c | 41 +++++++++------------
drivers/net/wireless/microchip/wilc1000/hif.c | 17 ++++-----
drivers/net/wireless/microchip/wilc1000/netdev.c | 43 +++++++++-------------
drivers/net/wireless/microchip/wilc1000/netdev.h | 5 +--
drivers/net/wireless/microchip/wilc1000/wlan.c | 5 +--
5 files changed, 46 insertions(+), 65 deletions(-)
---
base-commit: bd53dcabb6d8211d5e2994d7acd000d203e1e031
change-id: 20240222-wilc_srcu_to_rcu-0163d53a2dd3

Best regards,
--
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com