]> granicus.if.org Git - spl/commit
Retire rwsem_is_locked() compat
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Jun 2015 17:42:36 +0000 (10:42 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Jun 2015 23:35:48 +0000 (16:35 -0700)
commit86c16c59fe0d78d44e9f3ebb10ee740bb1028045
tree4641127d1ff933df2257f780382de666f7a0a04d
parenta876b0305e94eea9505e7ecbae93cf7a1d24f743
Retire rwsem_is_locked() compat

Stock Linux 2.6.32 and earlier kernels contained a broken version of
rwsem_is_locked() which could return an incorrect value.  Because of
this compatibility code was added to detect the broken implementation
and replace it with our own if needed.

The fix for this issue was merged in to the mainline Linux kernel as
of 2.6.33 and the major enterprise distributions based on 2.6.32 have
all backported the fix.  Therefore there is no longer a need to carry
this code and it can be removed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #454
config/spl-build.m4
include/linux/rwsem_compat.h
include/sys/rwlock.h