Hi Pablo, 2017-03-25 2:45 GMT+08:00 Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>: [...] > I think we can get this smaller: it should be possible to avoid this > synchronize_rcu() call from nf_conntrack_{register,unregister}_notifier(). > These two are called from ctnetlink netns path, this patch already > adds a synchronize_rcu() spot to ctnetlink module removal which is > where the event callback can vanish. > > You can just add a comment there so we don't forget about this, eg. > > @@ -290,6 +290,7 @@ void nf_conntrack_unregister_notifier(struct net > *net, > BUG_ON(notify != new); > RCU_INIT_POINTER(net->ct.nf_conntrack_event_cb, NULL); > mutex_unlock(&nf_ct_ecache_mutex); > + /* synchronize_rcu() is called from ctnetlink. */ > } > > What do you think? Right, this can avoid two useless synchronize_rcu() invocations when deleting netns, I will send V2. Thanks Pablo. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html