]> git.proxmox.com Git - mirror_spl.git/commit
Linux 4.8 compat: rw_semaphore atomic_long_t count
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 26 Jul 2016 23:37:46 +0000 (23:37 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 29 Jul 2016 21:17:53 +0000 (14:17 -0700)
commitb7c7008ba28ca926fbda929aec52f3761d72cffe
tree21c4186bf940b6ed92a72960559bac0e4be31f90
parentd2f97b2a2651d8e1a6e9e1dcb07cfe8570efcfff
Linux 4.8 compat: rw_semaphore atomic_long_t count

For non-rwsem-spinlocks the "count" member was changed from a
"long" to "atomic_long_t" type.  A configure check has been
added to detect this change along with new versions of the
_rwsem_tryupgrade() function and RWSEM_COUNT() macro.  See
https://github.com/torvalds/linux/commit/8ee62b18 for complete
details.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #563
config/spl-build.m4
include/linux/rwsem_compat.h
module/spl/spl-rwlock.c