Messages in this thread | | | From | "Luck, Tony" <> | Subject | RE: [PATCH v2 1/2] x86/split_lock: Make life miserable for split lockers | Date | Thu, 17 Mar 2022 16:27:41 +0000 |
| |
Pavel,
> I'm not sure what split locks are, and if you want applications to > stop doing that maybe documentation would help.
See existing Documentation/x86/buslock.rst
> Anyway, you can't really introduce regressions to userspace to "get > stuff fixed" in applications.
Applications can inflict pain on the system with atomic operations on unaligned operands that cross cache line boundaries. This is just pushing some pain back to the applications.
An alternate title for this patch series could have been:
"Split-locks: The OS strikes back"
Note that there are few applications that actually split locks. Normal compiler alignment rules generally avoid them. Applications that run on non-x86 architectures have to avoid them because few others allow atomic operations on unaligned operands.
-Tony
| |