Re: [PATCH 1/2] hung_task: Show the blocker task if the task is hung on mutex

From: Steven Rostedt
Date: Thu Feb 20 2025 - 11:32:41 EST


On Thu, 20 Feb 2025 08:13:31 -0500
Waiman Long <llong@xxxxxxxxxx> wrote:

> Another alternative is to encode the locking type into the lowest 2 bits
> of the address and combined them into a single atomic_long_t data item.
> Of course, we can only support 4 different types with this scheme.

You could also use the MSB as they are either always all ones or all zeros
depending on the architecture ;-)

-- Steve