]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6828ea7c9e631b8aa9cb425bcec531268cb62a7f
tree60ae96eb923ade97a28b1298b49e1319062ea6cf
parent952b7992d7c36995c8717f9d84a1a9fd0ee0cdd6
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