[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161121.113255.436791705251918172.davem@davemloft.net>
Date: Mon, 21 Nov 2016 11:32:55 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, rasesh.mody@...ium.com,
harish.patil@...ium.com
Subject: Re: [PATCH net-next] bnx2: use READ_ONCE() instead of barrier()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Sat, 19 Nov 2016 14:57:11 -0800
> From: Eric Dumazet <edumazet@...gle.com>
>
> barrier() is a big hammer compared to READ_ONCE(),
> and requires comments explaining what is protected.
>
> READ_ONCE() is more precise and compiler should generate
> better overall code.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied.
Powered by blists - more mailing lists