* Peter Zijlstra [2013-10-08 12:25:07]:
> From: Oleg Nesterov
>
> It is functionally equivalent to
>
> struct rcu_sync_struct {
> atomic_t counter;
> };
>
> static inline bool rcu_sync_is_idle(struct rcu_sync_struct *xxx)
> {
> r
On 10/08/2013 06:25 PM, Peter Zijlstra wrote:
> From: Oleg Nesterov
>
> It is functionally equivalent to
>
> struct rcu_sync_struct {
> atomic_t counter;
> };
>
> static inline bool rcu_sync_is_idle(struct rcu_sync_struct *xxx)
> {
>
On Tue, Oct 08, 2013 at 02:40:45PM -0600, Jonathan Corbet wrote:
> OK, so this is a real nit, but...in the changelog:
>
> > static inline void rcu_sync_enter(struct rcu_sync_struct *xxx)
> > {
> > atomic_inc(&xxx->counter);
> > synchronize_sched();
>
OK, so this is a real nit, but...in the changelog:
> static inline void rcu_sync_enter(struct rcu_sync_struct *xxx)
> {
> atomic_inc(&xxx->counter);
> synchronize_sched();
> }
>
> static inline void rcu_sync_enter(struct rcu_sync_str
From: Oleg Nesterov
It is functionally equivalent to
struct rcu_sync_struct {
atomic_t counter;
};
static inline bool rcu_sync_is_idle(struct rcu_sync_struct *xxx)
{
return atomic_read(&xxx->counter) == 0;
}
static
5 matches
Mail list logo