On Fri, Jul 17, 2020 at 6:48 AM Eric Biggers <[email protected]> wrote: > > From: Eric Biggers <[email protected]> ... > This is motivated by the discussion at > https://lkml.kernel.org/linux-fsdevel/[email protected]/T/#u ... > +In where cases where taking the mutex in the "already initialized" case
"In cases where..." (drop first "where") > +presents scalability concerns, the implementation can be optimized to > +check the 'inited' flag outside the mutex. Unfortunately, this > +optimization is often implemented incorrectly by using a plain load. > +That violates the memory model and may result in unpredictable behavior. - Sedat -

