OSDN Git Service

nl80211: use RCU to read regdom in reg get/dump
authorJohannes Berg <johannes.berg@intel.com>
Mon, 14 Feb 2022 09:18:20 +0000 (10:18 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Feb 2022 14:40:11 +0000 (15:40 +0100)
commit024fcf5efda73d95394ec7448bc9751e265fb18f
tree60ae96eb923ade97a28b1298b49e1319062ea6cf
parentb59fb5461166680c5e4e9df06b29debca33ee941
nl80211: use RCU to read regdom in reg get/dump

Use RCU here to read the regdomain, this will allow us
to remove the RTNL locking from the setter.

Note in nl80211_get_reg_do() we still need the RTNL to
do the wiphy lookup.

Link: https://lore.kernel.org/r/20220214101820.5d4acbcf2a46.Ibfc91980439862125e983d9adeebaba73fe38e2d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c