commit | 19efbd93e6fb05eab81856b4fc8d64211dd37088 | [log] [tgz] |
---|---|---|
author | Kirill Tkhai <ktkhai@virtuozzo.com> | Mon Feb 19 12:58:38 2018 +0300 |
committer | David S. Miller <davem@davemloft.net> | Tue Feb 20 13:23:13 2018 -0500 |
tree | 92b753425011641fc730a1eda732169350ad6ffd | |
parent | ffc385b95adb0e601f6858b06401adabedf59f81 [diff] |
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>