Re: [PATCH v10 6/6] x86/split_lock: Enable split lock detection by kernel parameter

From: Peter Zijlstra
Date: Fri Nov 22 2019 - 15:32:22 EST


On Fri, Nov 22, 2019 at 09:46:16AM +0000, David Laight wrote:
> From Andy Lutomirski

> > Can we really not just change the lock asm to use 32-bit accesses for
> > set_bit(), etc? Sure, it will fail if the bit index is greater than
> > 2^32, but that seems nuts.
>
> For little endian 64bit cpu it is safe(ish) to cast int [] to long [] for the bitops.

But that generates the alignment issues this patch set is concerned
about.