]> git.proxmox.com Git - mirror_spl-debian.git/commit
Disable rw_tryupgrade() for newer kernels
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 20 Apr 2010 22:16:27 +0000 (15:16 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 22 Apr 2010 19:28:19 +0000 (12:28 -0700)
commitef6c1368848f364ac08ccba60bb88010548d9930
treeeea7bfeee70d3a15a486dba8df42b3aded3b3812
parent8934764e6049d1eebae3eca8af99b8ee7140c0ab
Disable rw_tryupgrade() for newer kernels

For kernels using the CONFIG_RWSEM_GENERIC_SPINLOCK implementation
nothing has changed.  But if your kernel is building with arch
specific rwsems rw_tryupgrade() has been disabled until it can
be implemented correctly.  In particular, the x86 implementation
now leverages atomic primatives for serialization rather than
spinlocks.  So to get this working again it will need to be
implemented as a cmpxchg for x86 and likely something similiar
for other arches we are interested in.  For now it's safest
to simply disable it.
include/sys/rwlock.h