* [PATCH] net: convert to rcu_dereference_index_check()
@ 2010-08-06 21:26 Paul E. McKenney
2010-08-06 21:49 ` David Miller
2010-08-06 22:15 ` Herbert Xu
0 siblings, 2 replies; 5+ messages in thread
From: Paul E. McKenney @ 2010-08-06 21:26 UTC (permalink / raw)
To: herbert; +Cc: netdev, linux-kernel, davem, arnd
Hello, Herbert!
At long last, the following is the final patch blocking acceptance
of Arnd's sparse annotations for RCU. It was itself blocked behind
the definition of rcu_dereference_index_check(), which made it to
mainline only just today.
Would you be willing to ack this patch so that I can push it to -tip,
along with Arnd's work and a bunch of other stuff?
Thanx, Paul
------------------------------------------------------------------------
commit 34ea15566530f8e4d0c1571cc8c3554fd91d5809
Author: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Date: Mon Jun 14 17:06:21 2010 -0700
net: convert to rcu_dereference_index_check()
The task_cls_classid() function applies rcu_dereference() to integers,
which does not work with the shiny new sparse-based checking in
rcu_dereference(). This commit therefore moves to the new RCU API
rcu_dereference_index_check().
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
cls_cgroup.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/net/cls_cgroup.h b/include/net/cls_cgroup.h
index 726cc35..dd1fdb8 100644
--- a/include/net/cls_cgroup.h
+++ b/include/net/cls_cgroup.h
@@ -45,7 +45,8 @@ static inline u32 task_cls_classid(struct task_struct *p)
return 0;
rcu_read_lock();
- id = rcu_dereference(net_cls_subsys_id);
+ id = rcu_dereference_index_check(net_cls_subsys_id,
+ rcu_read_lock_held());
if (id >= 0)
classid = container_of(task_subsys_state(p, id),
struct cgroup_cls_state, css)->classid;
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net: convert to rcu_dereference_index_check()
2010-08-06 21:26 [PATCH] net: convert to rcu_dereference_index_check() Paul E. McKenney
@ 2010-08-06 21:49 ` David Miller
2010-08-06 21:54 ` Paul E. McKenney
2010-08-06 22:15 ` Herbert Xu
1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2010-08-06 21:49 UTC (permalink / raw)
To: paulmck; +Cc: herbert, netdev, linux-kernel, arnd
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Date: Fri, 6 Aug 2010 14:26:07 -0700
> At long last, the following is the final patch blocking acceptance
> of Arnd's sparse annotations for RCU. It was itself blocked behind
> the definition of rcu_dereference_index_check(), which made it to
> mainline only just today.
>
> Would you be willing to ack this patch so that I can push it to -tip,
> along with Arnd's work and a bunch of other stuff?
...
> net: convert to rcu_dereference_index_check()
>
> The task_cls_classid() function applies rcu_dereference() to integers,
> which does not work with the shiny new sparse-based checking in
> rcu_dereference(). This commit therefore moves to the new RCU API
> rcu_dereference_index_check().
>
> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
You should of course wait for Herbert's ACK too, but for
the record:
Acked-by: David S. Miller <davem@davemloft.net>
:-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: convert to rcu_dereference_index_check()
2010-08-06 21:49 ` David Miller
@ 2010-08-06 21:54 ` Paul E. McKenney
0 siblings, 0 replies; 5+ messages in thread
From: Paul E. McKenney @ 2010-08-06 21:54 UTC (permalink / raw)
To: David Miller; +Cc: herbert, netdev, linux-kernel, arnd
On Fri, Aug 06, 2010 at 02:49:01PM -0700, David Miller wrote:
> From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
> Date: Fri, 6 Aug 2010 14:26:07 -0700
>
> > At long last, the following is the final patch blocking acceptance
> > of Arnd's sparse annotations for RCU. It was itself blocked behind
> > the definition of rcu_dereference_index_check(), which made it to
> > mainline only just today.
> >
> > Would you be willing to ack this patch so that I can push it to -tip,
> > along with Arnd's work and a bunch of other stuff?
> ...
> > net: convert to rcu_dereference_index_check()
> >
> > The task_cls_classid() function applies rcu_dereference() to integers,
> > which does not work with the shiny new sparse-based checking in
> > rcu_dereference(). This commit therefore moves to the new RCU API
> > rcu_dereference_index_check().
> >
> > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> > Reviewed-by: Josh Triplett <josh@joshtriplett.org>
>
> You should of course wait for Herbert's ACK too, but for
> the record:
>
> Acked-by: David S. Miller <davem@davemloft.net>
>
> :-)
Thank you, David!!! ;-)
Thanx, Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: convert to rcu_dereference_index_check()
2010-08-06 21:26 [PATCH] net: convert to rcu_dereference_index_check() Paul E. McKenney
2010-08-06 21:49 ` David Miller
@ 2010-08-06 22:15 ` Herbert Xu
2010-08-06 22:52 ` Paul E. McKenney
1 sibling, 1 reply; 5+ messages in thread
From: Herbert Xu @ 2010-08-06 22:15 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: netdev, linux-kernel, davem, arnd
On Fri, Aug 06, 2010 at 02:26:07PM -0700, Paul E. McKenney wrote:
> Hello, Herbert!
>
> At long last, the following is the final patch blocking acceptance
> of Arnd's sparse annotations for RCU. It was itself blocked behind
> the definition of rcu_dereference_index_check(), which made it to
> mainline only just today.
>
> Would you be willing to ack this patch so that I can push it to -tip,
> along with Arnd's work and a bunch of other stuff?
Sure,
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: convert to rcu_dereference_index_check()
2010-08-06 22:15 ` Herbert Xu
@ 2010-08-06 22:52 ` Paul E. McKenney
0 siblings, 0 replies; 5+ messages in thread
From: Paul E. McKenney @ 2010-08-06 22:52 UTC (permalink / raw)
To: Herbert Xu; +Cc: netdev, linux-kernel, davem, arnd
On Sat, Aug 07, 2010 at 06:15:20AM +0800, Herbert Xu wrote:
> On Fri, Aug 06, 2010 at 02:26:07PM -0700, Paul E. McKenney wrote:
> > Hello, Herbert!
> >
> > At long last, the following is the final patch blocking acceptance
> > of Arnd's sparse annotations for RCU. It was itself blocked behind
> > the definition of rcu_dereference_index_check(), which made it to
> > mainline only just today.
> >
> > Would you be willing to ack this patch so that I can push it to -tip,
> > along with Arnd's work and a bunch of other stuff?
>
> Sure,
>
> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Thank you, Herbert!!!
Thanx, Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-06 22:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-06 21:26 [PATCH] net: convert to rcu_dereference_index_check() Paul E. McKenney
2010-08-06 21:49 ` David Miller
2010-08-06 21:54 ` Paul E. McKenney
2010-08-06 22:15 ` Herbert Xu
2010-08-06 22:52 ` 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;
as well as URLs for NNTP newsgroup(s).