* [2.6 patch] kernel/rcupdate.c: kill synchronize_kernel()
@ 2006-04-11 3:51 Adrian Bunk
2006-04-11 14:35 ` Paul E. McKenney
2006-04-11 14:53 ` Andreas Mohr
0 siblings, 2 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-04-11 3:51 UTC (permalink / raw)
To: paulmck; +Cc: linux-kernel
synchronize_kernel() is both deprecated and completely unused.
Let's kill this bloat.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
Documentation/RCU/whatisRCU.txt | 1 -
include/linux/rcupdate.h | 1 -
kernel/rcupdate.c | 9 ---------
3 files changed, 11 deletions(-)
--- linux-2.6.17-rc1-mm2-full/Documentation/RCU/whatisRCU.txt.old 2006-04-11 01:23:39.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/Documentation/RCU/whatisRCU.txt 2006-04-11 01:23:45.000000000 +0200
@@ -790,7 +790,6 @@
RCU grace period:
- synchronize_kernel (deprecated)
synchronize_net
synchronize_sched
synchronize_rcu
--- linux-2.6.17-rc1-mm2-full/include/linux/rcupdate.h.old 2006-04-11 01:23:53.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/include/linux/rcupdate.h 2006-04-11 01:24:28.000000000 +0200
@@ -263,7 +263,6 @@
void (*func)(struct rcu_head *head)));
extern void FASTCALL(call_rcu_bh(struct rcu_head *head,
void (*func)(struct rcu_head *head)));
-extern __deprecated_for_modules void synchronize_kernel(void);
extern void synchronize_rcu(void);
void synchronize_idle(void);
extern void rcu_barrier(void);
--- linux-2.6.17-rc1-mm2-full/kernel/rcupdate.c.old 2006-04-11 01:24:36.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/kernel/rcupdate.c 2006-04-11 01:24:57.000000000 +0200
@@ -593,14 +593,6 @@
wait_for_completion(&rcu.completion);
}
-/*
- * Deprecated, use synchronize_rcu() or synchronize_sched() instead.
- */
-void synchronize_kernel(void)
-{
- synchronize_rcu();
-}
-
module_param(blimit, int, 0);
module_param(qhimark, int, 0);
module_param(qlowmark, int, 0);
@@ -611,4 +603,3 @@
EXPORT_SYMBOL_GPL_FUTURE(call_rcu); /* WARNING: GPL-only in April 2006. */
EXPORT_SYMBOL_GPL_FUTURE(call_rcu_bh); /* WARNING: GPL-only in April 2006. */
EXPORT_SYMBOL_GPL(synchronize_rcu);
-EXPORT_SYMBOL_GPL_FUTURE(synchronize_kernel); /* WARNING: GPL-only in April 2006. */
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [2.6 patch] kernel/rcupdate.c: kill synchronize_kernel()
2006-04-11 3:51 [2.6 patch] kernel/rcupdate.c: kill synchronize_kernel() Adrian Bunk
@ 2006-04-11 14:35 ` Paul E. McKenney
2006-04-11 14:53 ` Andreas Mohr
1 sibling, 0 replies; 4+ messages in thread
From: Paul E. McKenney @ 2006-04-11 14:35 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
Hello, Adrian,
This one is on my list for May 1st. At that time, I will submit a
patch such that:
o synchronize_kernel() goes away
o call_rcu() and call_rcu_bh() become EXPORT_SYMBOL_GPL().
Thanx, Paul
On Tue, Apr 11, 2006 at 05:51:01AM +0200, Adrian Bunk wrote:
> synchronize_kernel() is both deprecated and completely unused.
>
> Let's kill this bloat.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
>
> ---
>
> Documentation/RCU/whatisRCU.txt | 1 -
> include/linux/rcupdate.h | 1 -
> kernel/rcupdate.c | 9 ---------
> 3 files changed, 11 deletions(-)
>
> --- linux-2.6.17-rc1-mm2-full/Documentation/RCU/whatisRCU.txt.old 2006-04-11 01:23:39.000000000 +0200
> +++ linux-2.6.17-rc1-mm2-full/Documentation/RCU/whatisRCU.txt 2006-04-11 01:23:45.000000000 +0200
> @@ -790,7 +790,6 @@
>
> RCU grace period:
>
> - synchronize_kernel (deprecated)
> synchronize_net
> synchronize_sched
> synchronize_rcu
> --- linux-2.6.17-rc1-mm2-full/include/linux/rcupdate.h.old 2006-04-11 01:23:53.000000000 +0200
> +++ linux-2.6.17-rc1-mm2-full/include/linux/rcupdate.h 2006-04-11 01:24:28.000000000 +0200
> @@ -263,7 +263,6 @@
> void (*func)(struct rcu_head *head)));
> extern void FASTCALL(call_rcu_bh(struct rcu_head *head,
> void (*func)(struct rcu_head *head)));
> -extern __deprecated_for_modules void synchronize_kernel(void);
> extern void synchronize_rcu(void);
> void synchronize_idle(void);
> extern void rcu_barrier(void);
> --- linux-2.6.17-rc1-mm2-full/kernel/rcupdate.c.old 2006-04-11 01:24:36.000000000 +0200
> +++ linux-2.6.17-rc1-mm2-full/kernel/rcupdate.c 2006-04-11 01:24:57.000000000 +0200
> @@ -593,14 +593,6 @@
> wait_for_completion(&rcu.completion);
> }
>
> -/*
> - * Deprecated, use synchronize_rcu() or synchronize_sched() instead.
> - */
> -void synchronize_kernel(void)
> -{
> - synchronize_rcu();
> -}
> -
> module_param(blimit, int, 0);
> module_param(qhimark, int, 0);
> module_param(qlowmark, int, 0);
> @@ -611,4 +603,3 @@
> EXPORT_SYMBOL_GPL_FUTURE(call_rcu); /* WARNING: GPL-only in April 2006. */
> EXPORT_SYMBOL_GPL_FUTURE(call_rcu_bh); /* WARNING: GPL-only in April 2006. */
> EXPORT_SYMBOL_GPL(synchronize_rcu);
> -EXPORT_SYMBOL_GPL_FUTURE(synchronize_kernel); /* WARNING: GPL-only in April 2006. */
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [2.6 patch] kernel/rcupdate.c: kill synchronize_kernel()
2006-04-11 3:51 [2.6 patch] kernel/rcupdate.c: kill synchronize_kernel() Adrian Bunk
2006-04-11 14:35 ` Paul E. McKenney
@ 2006-04-11 14:53 ` Andreas Mohr
2006-04-11 15:12 ` Paul E. McKenney
1 sibling, 1 reply; 4+ messages in thread
From: Andreas Mohr @ 2006-04-11 14:53 UTC (permalink / raw)
To: Adrian Bunk; +Cc: paulmck, linux-kernel
Hi,
On Tue, Apr 11, 2006 at 05:51:01AM +0200, Adrian Bunk wrote:
> synchronize_kernel() is both deprecated and completely unused.
>
> Let's kill this bloat.
Probably a good idea, but then it's not too useful to have
http://lse.sourceforge.net/locking/rcu/HOWTO/descrip.html
still prominently mention it...
Andreas Mohr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.6 patch] kernel/rcupdate.c: kill synchronize_kernel()
2006-04-11 14:53 ` Andreas Mohr
@ 2006-04-11 15:12 ` Paul E. McKenney
0 siblings, 0 replies; 4+ messages in thread
From: Paul E. McKenney @ 2006-04-11 15:12 UTC (permalink / raw)
To: Andreas Mohr; +Cc: Adrian Bunk, linux-kernel
On Tue, Apr 11, 2006 at 04:53:56PM +0200, Andreas Mohr wrote:
> Hi,
>
> On Tue, Apr 11, 2006 at 05:51:01AM +0200, Adrian Bunk wrote:
> > synchronize_kernel() is both deprecated and completely unused.
> >
> > Let's kill this bloat.
>
> Probably a good idea, but then it's not too useful to have
> http://lse.sourceforge.net/locking/rcu/HOWTO/descrip.html
> still prominently mention it...
My May 1st patches will update the documentation files as well,
also the -rt tree. Please let me take care of this.
Thanx, Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-11 15:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 3:51 [2.6 patch] kernel/rcupdate.c: kill synchronize_kernel() Adrian Bunk
2006-04-11 14:35 ` Paul E. McKenney
2006-04-11 14:53 ` Andreas Mohr
2006-04-11 15:12 ` Paul E. McKenney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox