On Wed, Aug 02, 2017 at 04:28:42PM +0200, Christoffer Dall wrote: > There is a small chance that the compiler could generate separate loads > for the dist->propbaser which could be modified from another CPU. As we > want to make sure we atomically update the entire value, and don't race > with other updates, guarantee that the cmpxchg operation compares > against the original value. > > Cc: Catalin Marinas <catalin.marinas@xxxxxxx> > Signed-off-by: Christoffer Dall <cdall@xxxxxxxxxx> FWIW: Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>