[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191016015142.GA7389@gondor.apana.org.au>
Date: Wed, 16 Oct 2019 12:51:42 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Davidlohr Bueso <dave@...olabs.net>
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
Davidlohr Bueso <dbueso@...e.de>
Subject: Re: [PATCH] drivers,crypto/cavium: Fix barrier barrier usage after
atomic_set()
On Tue, Oct 15, 2019 at 09:16:57AM -0700, Davidlohr Bueso wrote:
> Because it is not a Rmw operation, atomic_set() is not serialized,
> and therefore the 'upgradable' smp_mb__after_atomic() call after
> the atomic_set() is completely bogus (not to mention the comment
> could also use some love, but that's a different matter).
>
> This patch replaces these with smp_mb(), which seems like the
> original intent of when the code was written.
>
> Signed-off-by: Davidlohr Bueso <dbueso@...e.de>
> ---
> drivers/crypto/cavium/nitrox/nitrox_main.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
So what does this actually synchronise against?
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists