On Mon, Jul 13, 2020 at 10:48:00PM -0400, Waiman Long wrote:Yes, there are limit on how much data one can put into the lock byte. So it is not a sure way to find out who the lock holder is. There are certainly large systems with hundreds or even thousands of cpus, but they are the minority in the sea of Linux systems out there.
Storing the cpu number into the lock can be useful for other reason too. ItWell, the thing you did only works for 'small' (<253 CPU) systems.
is not totally related to PPC support.
There's a number of Power systems that's distinctly larger than that. So
it simply cannot work as anything other than a suggestion/hint. It must
not be a correctness thing.