Re: [PATCH v2] fs: use acquire ordering in __fget_light()

From: Linus Torvalds
Date: Mon Oct 31 2022 - 14:46:18 EST


On Mon, Oct 31, 2022 at 11:08 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> Looks sane, but looking at the definition of atomic_read_acquire... ouch.

The compiler should sort all that out and the mess shouldn't affect
any code generation.

But I also wouldn't mind somebody fixing things up, because I do agree
that checking whether 'atomic_t' is a native word size is kind of
pointless and probably just makes our build times unnecessarily
longer.

Linus