lkml.org 
[lkml]   [2017]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] net: Convert net_mutex into rw_semaphore and down read it on net->init/->exit
From
Date
On Tue, 2017-11-14 at 10:11 -0800, Stephen Hemminger wrote:
> On Tue, 14 Nov 2017 16:53:33 +0300
> Kirill Tkhai <ktkhai@virtuozzo.com> wrote:
>
> > + /*
> > + * RCU-protected list, modifiable by pernet-init and -exit methods.
> > + * When net namespace is alive (net::count > 0), all the changes
> > + * are made under rw_sem held on write.
> > + */
> > + struct list_head fib_notifier_ops;
> >
>
> If you use __rcu annotation then it could be checked (and the comment is not needed).

I do not think we can use __rcu annotation yet on a struct list_head ?

(The annotation would be needed on the members)




\
 
 \ /
  Last update: 2017-11-14 20:08    [W:0.119 / U:0.216 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site