The ops field is zero initialized, therefore parallel ops is already false. 
This implicates that the netlink callbacks are not
processed in parallel. Maybe this could be utilized to reduce locking overhead 
or maybe also parallel ops could be implemented.

Signed-off-by: Benjamin Beichler <[email protected]>
---
 drivers/net/wireless/mac80211_hwsim.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/mac80211_hwsim.c 
b/drivers/net/wireless/mac80211_hwsim.c
index 62c5a00a76c3..5dd4be2a8487 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -3499,6 +3499,7 @@ static struct genl_family hwsim_genl_family 
__ro_after_init = {
        .n_ops = ARRAY_SIZE(hwsim_ops),
        .mcgrps = hwsim_mcgrps,
        .n_mcgrps = ARRAY_SIZE(hwsim_mcgrps),
+       .parallel_ops = false
 };
 
 static void destroy_radio(struct work_struct *work)
-- 
2.14.1

Reply via email to