Re: [patch 125/166] lib/list: prevent compiler reloads inside 'safe' list iteration

Linus Torvalds
2020-04-07T20:07:09Z

On Tue, Apr 7, 2020 at 1:04 PM Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> You may be relying on some very subtle consistency guarantee that is
> true on x86. For example, x86 does guarantee "causality".
>
> Not everybody else does that.

It's worth noting that maybe for the i915 driver it makes sense to
just assume x86 memory ordering.

But even if that's the case, then it doesn't make sense to change
list_prev_entry_safe() anywhere else.

Linus