From: Lai Jiangshan <laijs-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
To: Eric Dumazet <eric.dumazet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "Randy Dunlap"
<randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>,
linux-decnet-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
"Trond Myklebust"
<Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org>,
linux-sctp-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"Pavel Emelyanov" <xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>,
"Pekka Savola (ipv6)"
<pekkas-UjJjq++bwZ7HOG6cAo2yLw@public.gmane.org>,
"Uwe Kleine-König"
<u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
"Alexey Kuznetsov"
<kuznet-v/Mj1YrvjDBInbfyfbPRSQ@public.gmane.org>,
"Ingo Molnar" <mingo-X9Un+BFzKDI@public.gmane.org>,
"Paul E. McKenney"
<paulmck-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>,
"Sridhar Samudrala" <sri-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>,
"Vlad Yasevich" <vladislav.yasevich-VXdhtT5mjnY@public.gmane.org>,
"Hagen Paul Pfeifer" <hagen-GvnIQ6b/HdU@public.gmane.org>,
"John W. Linville"
<linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>,
"Al Viro"
<viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org>,
"Johannes Berg"
<johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>,
"Jens Axboe" <axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org>,
linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"Jiri Pirko" <jpirko-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH 17/17] net,act_police,rcu: remove rcu_barrier()
Date: Wed, 16 Mar 2011 11:13:11 +0800 [thread overview]
Message-ID: <4D802AC7.8040801@cn.fujitsu.com> (raw)
In-Reply-To: <1300187052.10062.12.camel@edumazet-laptop>
On 03/15/2011 07:04 PM, Eric Dumazet wrote:
> Le mardi 15 mars 2011 à 18:11 +0800, Lai Jiangshan a écrit :
>>
>> There is no callback of this module maybe queued
>> since we use kfree_rcu(), we can safely remove the rcu_barrier().
>>
>> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
>> ---
>> net/sched/act_police.c | 1 -
>> 1 files changed, 0 insertions(+), 1 deletions(-)
>>
>> diff --git a/net/sched/act_police.c b/net/sched/act_police.c
>> index 083b091..22e3f9b 100644
>> --- a/net/sched/act_police.c
>> +++ b/net/sched/act_police.c
>> @@ -397,7 +397,6 @@ static void __exit
>> police_cleanup_module(void)
>> {
>> tcf_unregister_action(&act_police_ops);
>> - rcu_barrier(); /* Wait for completion of call_rcu()'s (tcf_police_free_rcu) */
>> }
>>
>> module_init(police_init_module);
>
>
> Why is it a separate patch, and not included in patch 5/17 ?
>
A simple_kfree_callback() a patch, if a module has multiple simple_kfree_callback()s,
"rcu_barrier()" in module_exit function should only be removed after all
callback()s are converted to kfree_rcu(). Separate patches makes things
clearer.
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
next prev parent reply other threads:[~2011-03-16 3:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4D7F3610.6000809@cn.fujitsu.com>
[not found] ` <4D7F372A.6050407@cn.fujitsu.com>
[not found] ` <4D7F372A.6050407-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 20:03 ` [PATCH 01/17] cgroup, rcu: convert call_rcu(free_css_set_rcu) to kfree_rcu() Paul Menage
[not found] ` <4D7F3784.6090307@cn.fujitsu.com>
[not found] ` <4D7F3784.6090307-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 20:04 ` [PATCH 02/17] cgroup, rcu: convert call_rcu(free_cgroup_rcu) " Paul Menage
[not found] ` <4D7F37BA.5000308@cn.fujitsu.com>
[not found] ` <4D7F37BA.5000308-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 20:04 ` [PATCH 03/17] cgroup, rcu: convert call_rcu(__free_css_id_cb) " Paul Menage
[not found] ` <4D7F37F0.1050801@cn.fujitsu.com>
[not found] ` <4D7F37F0.1050801-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 21:02 ` [PATCH 04/17] net,rcu: convert call_rcu(tcf_common_free_rcu) " David Miller
[not found] ` <4D7F3828.4040403@cn.fujitsu.com>
[not found] ` <4D7F3828.4040403-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 21:02 ` [PATCH 05/17] net,rcu: convert call_rcu(tcf_police_free_rcu) " David Miller
[not found] ` <4D7F3872.6090305@cn.fujitsu.com>
2011-03-15 21:03 ` [PATCH 06/17] net,rcu: convert call_rcu(in6_dev_finish_destroy_rcu) " David Miller
[not found] ` <4D7F38AE.7060708@cn.fujitsu.com>
2011-03-15 21:03 ` [PATCH 07/17] net,rcu: convert call_rcu(inet6_ifa_finish_destroy_rcu) " David Miller
[not found] ` <4D7F3906.3090107@cn.fujitsu.com>
[not found] ` <4D7F3906.3090107-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 21:03 ` [PATCH 08/17] net,rcu: convert call_rcu(listeners_free_rcu) " David Miller
[not found] ` <4D7F39CE.80403@cn.fujitsu.com>
[not found] ` <4D7F39CE.80403-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 21:03 ` [PATCH 11/17] net,rcu: convert call_rcu(sctp_local_addr_free) " David Miller
[not found] ` <4D7F3ABA.7020709@cn.fujitsu.com>
[not found] ` <4D7F3ABA.7020709-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 21:04 ` [PATCH 15/17] net,rcu: convert call_rcu(ha_rcu_free) " David Miller
[not found] ` <4D7F3B04.9080504@cn.fujitsu.com>
2011-03-15 21:04 ` [PATCH 16/17] net,rcu: convert call_rcu(dn_dev_free_ifa_rcu) " David Miller
[not found] ` <4D7F3B62.6000005@cn.fujitsu.com>
[not found] ` <4D7F3B62.6000005-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2011-03-15 11:04 ` [PATCH 17/17] net,act_police,rcu: remove rcu_barrier() Eric Dumazet
2011-03-16 3:13 ` Lai Jiangshan [this message]
2011-03-15 21:04 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D802AC7.8040801@cn.fujitsu.com \
--to=laijs-bthxqxjhjhxqfuhtdcdx3a@public.gmane.org \
--cc=Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org \
--cc=axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org \
--cc=eric.dumazet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=hagen-GvnIQ6b/HdU@public.gmane.org \
--cc=johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org \
--cc=jpirko-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=kuznet-v/Mj1YrvjDBInbfyfbPRSQ@public.gmane.org \
--cc=linux-decnet-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sctp-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org \
--cc=mingo-X9Un+BFzKDI@public.gmane.org \
--cc=paulmck-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
--cc=pekkas-UjJjq++bwZ7HOG6cAo2yLw@public.gmane.org \
--cc=randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=sri-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org \
--cc=vladislav.yasevich-VXdhtT5mjnY@public.gmane.org \
--cc=xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).