Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu_dereference_protected

From: David Howells
Date: Wed Apr 07 2010 - 13:01:51 EST

Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx> wrote:

> The new rcu_access_pointer() primitive is for the case where the pointer
> is be fetch and not dereferenced. This primitive may be used without
> protection, RCU or otherwise, due to the fact that it uses ACCESS_ONCE().
> ...
> +#define rcu_access_pointer(p, c) \

NAK. This shouldn't have the conditional parameter 'c'. Given that 'c' (by
analogy to rcu_dereference_check()) is there to describe the conditions under
which it's permitted to dereference the pointer, why is that relevant here?
What is it you're proving?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at