Re: [PATCH 1/3] net: Kill net_mutex

2018-02-21 Thread Kirill Tkhai
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

Re: [PATCH 1/3] net: Kill net_mutex

2018-02-20 Thread Stephen Hemminger
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

[PATCH 1/3] net: Kill net_mutex

2018-02-19 Thread Kirill Tkhai
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: