]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: Convert hwsim_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 1 Mar 2018 11:30:17 +0000 (14:30 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Mar 2018 09:01:25 +0000 (10:01 +0100)
These pernet_operations allocate and destroy IDA identifier,
and these actions are synchronized by IDA subsystem locks.
Exit method removes mac80211_hwsim_data enteries from the lists,
and this is synchronized by hwsim_radio_lock with the rest
parallel pernet_operations. Also it queues destroy_radio()
work, and these work already may be executed in parallel
with any pernet_operations (as it's a work :). So, we may
mark these pernet_operations as async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c

index 45ba846bc28583475c7574df642d1117550343d7..7b6c3640a94f4451a2d6f65ad969a5f092ea3ac7 100644 (file)
@@ -3541,6 +3541,7 @@ static struct pernet_operations hwsim_net_ops = {
        .exit = hwsim_exit_net,
        .id   = &hwsim_net_id,
        .size = sizeof(struct hwsim_net),
+       .async = true,
 };
 
 static void hwsim_exit_netlink(void)