Re: C aggregate passing (Rust kernel policy)
From: Linus Torvalds
Date: Thu Feb 27 2025 - 15:34:59 EST
On Thu, 27 Feb 2025 at 11:55, Kent Overstreet <kent.overstreet@xxxxxxxxx> wrote:
>
> It's more explicit, and that's probably not a bad thing - compare it to
> our smp_mb__after_atomic(), it's not uncommon to find code where the
> barriers are missing because the person who wrote the code was assuming
> x86.
Sadly, judging by the memory ordering discussions I saw, I will almost
guarantee you that the compiler support for memory ordering will be
buggy.
When we miss details in our wrappers or our users, we can fix them.
And when the compilers mess up, we'll use the wrappers anyway.
Linus