HomeFreeBSD

Linux 2.6.39 compat, mutex owner

Description

Linux 2.6.39 compat, mutex owner

Prior to Linux 2.6.39 when CONFIG_DEBUG_MUTEXES was defined
the kernel stored a thread_info pointer as the mutex owner.
From this you could get the pointer of the current task_struct
to compare with get_current().

As of Linux 2.6.39 this behavior has changed and now the mutex
stores a pointer to the task_struct. This commit detects the
type of pointer stored in the mutex and adjusts the mutex_owner()
and mutex_owned() functions to perform the correct comparision.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jun 24 2011, 6:57 PM
Parents
rG79593b0dec57: Stabilize the hostid for RPM installations.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG86fd39f35477: Linux 2.6.39 compat, mutex owner (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jun 24 2011, 8:00 PM