Re: Unlock-lock questions and the Linux Kernel Memory Model

From: Peter Zijlstra
Date: Thu Nov 30 2017 - 04:15:53 EST


On Thu, Nov 30, 2017 at 04:55:09PM +0800, Boqun Feng wrote:
> But in case of AMOs, which directly send the addition request to memory
> controller, so there wouldn't be any read part or even write part of the
> atomic_inc() executed by CPU. Would this be allowed then?

Personally I bloody hate AMOs that don't respect the normal way of
things.