]> git.proxmox.com Git - mirror_spl.git/commit
Linux 2.6.39 compat, mutex owner
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Jun 2011 18:57:14 +0000 (11:57 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Jun 2011 20:00:08 +0000 (13:00 -0700)
commit86fd39f354778eb10e77a7c1660b59ca16ffcc16
treeddba0bbdcc45babd1863a732c96bc475a19251a7
parent79593b0dec57ee94c5bb56cdc2770ebde81ecea9
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.
config/spl-build.m4
configure
include/sys/mutex.h
spl_config.h.in