Hi, Stephen,
On 21.02.2018 02:18, Stephen Hemminger wrote:
> On Mon, 19 Feb 2018 12:58:38 +0300
> Kirill Tkhai wrote:
>
>> +struct list_headexit_list; /* To linked to call pernet exit
>> + * methods on dead net (net_sem
>> +
On Mon, 19 Feb 2018 12:58:38 +0300
Kirill Tkhai wrote:
> + struct list_headexit_list; /* To linked to call pernet exit
> + * methods on dead net (net_sem
> + * read locked), or to
> unregis
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: Kiril