[PATCH 5/9] locking/qrwlock: remove redundant cmpxchg barriers on writer slow-path

Peter Zijlstra peterz at infradead.org
Wed Jul 8 03:05:26 PDT 2015


On Tue, Jul 07, 2015 at 06:24:21PM +0100, Will Deacon wrote:
> +#ifndef cmpxchg_relaxed
> +# define cmpxchg_relaxed	cmpxchg
> +#endif

Should we collate this _relaxed stuff and make it 'official' instead of
these ad-hoc/in-situ things?

There's more archs that can usefully implement them than seem to have
implemented them atm. Of course that means someone doing a full arch/*
sweep, but hey.. :-)



More information about the linux-arm-kernel mailing list