diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-27 18:02:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-27 13:18:09 -0400 |
commit | 4420bf21fb6c0306e36ad58ade1e741fba57ce65 (patch) | |
tree | fe1ebcb72cf4928379578f514b86309e25b6eda6 /net/core/rtnetlink.c | |
parent | 2f635ceeb22ba13c307236d69795fbb29cfa3e7c (diff) | |
download | lwn-4420bf21fb6c0306e36ad58ade1e741fba57ce65.tar.gz lwn-4420bf21fb6c0306e36ad58ade1e741fba57ce65.zip |
net: Rename net_sem to pernet_ops_rwsem
net_sem is some undefined area name, so it will be better
to make the area more defined.
Rename it to pernet_ops_rwsem for better readability and
better intelligibility.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 31438b63d4b4..73011a60434c 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -460,11 +460,11 @@ static void rtnl_lock_unregistering_all(void) void rtnl_link_unregister(struct rtnl_link_ops *ops) { /* Close the race with cleanup_net() */ - down_write(&net_sem); + down_write(&pernet_ops_rwsem); rtnl_lock_unregistering_all(); __rtnl_link_unregister(ops); rtnl_unlock(); - up_write(&net_sem); + up_write(&pernet_ops_rwsem); } EXPORT_SYMBOL_GPL(rtnl_link_unregister); |