]> git.baikalelectronics.ru Git - kernel.git/commit
net: Kill net_mutex
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Feb 2018 09:58:38 +0000 (12:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Feb 2018 18:23:13 +0000 (13:23 -0500)
commit31d2349d6dac802c6e107be8b87c580fd4fd6e9f
tree92b753425011641fc730a1eda732169350ad6ffd
parent6ea9d36b021159c63626bb416da6b7d6995dda75
net: Kill net_mutex

We take net_mutex, when there are !async pernet_operations
registered, and read locking of net_sem is not enough. But
we may get rid of taking the mutex, and just change the logic
to write lock net_sem in such cases. This obviously reduces
the number of lock operations, we do.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rtnetlink.h
include/net/net_namespace.h
net/core/net_namespace.c