[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101005.002959.45905767.davem@davemloft.net>
Date: Tue, 05 Oct 2010 00:29:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: hadi@...erus.ca, netdev@...r.kernel.org, jarkao2@...il.com
Subject: Re: [PATCH net-next] net: relax rtnl_dereference()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 04 Oct 2010 11:00:12 +0200
> Le lundi 04 octobre 2010 à 10:42 +0200, Eric Dumazet a écrit :
>
>> BTW, rtnl_dereference() should be changed to use
>> rcu_dereference_protected() instead of rcu_dereference_check() :
>> If RTBL is held, there is no need to force a barrier.
>>
>
> [PATCH net-next] net: relax rtnl_dereference()
>
> rtnl_dereference() is used in contexts where RTNL is held, to fetch an
> RCU protected pointer.
>
> Updates to this pointer are prevented by RTNL, so we dont need
> smp_read_barrier_depends() and the ACCESS_ONCE() provided in
> rcu_dereference_check().
>
> rtnl_dereference() is mainly a macro to document the locking invariant.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists