Files
linux/include/net
Kirill Tkhai 447cd7a0d7 net: Allow pernet_operations to be executed in parallel
This adds new pernet_operations::async flag to indicate operations,
which ->init(), ->exit() and ->exit_batch() methods are allowed
to be executed in parallel with the methods of any other pernet_operations.

When there are only asynchronous pernet_operations in the system,
net_mutex won't be taken for a net construction and destruction.

Also, remove BUG_ON(mutex_is_locked()) from net_assign_generic()
without replacing with the equivalent net_sem check, as there is
one more lockdep assert below.

v3: Add comment near net_mutex.

Suggested-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-13 10:36:05 -05:00
..
2018-01-19 14:02:12 -05:00
2017-11-27 16:20:04 -05:00
2018-02-06 11:32:48 -05:00
2017-10-11 09:49:34 +02:00
2017-11-16 10:49:00 +09:00
2017-12-11 14:10:06 -05:00
2017-12-15 12:34:00 -05:00
2017-09-29 06:19:32 +01:00
2017-11-08 16:12:33 +09:00
2017-12-05 14:37:13 -05:00
2018-01-24 19:13:45 -05:00
2017-12-04 11:32:53 -05:00
2017-11-27 16:20:04 -05:00
2018-01-17 16:07:24 -05:00