diff options
author | Orivej Desh <[email protected]> | 2020-12-10 05:22:54 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-12-23 14:34:59 -0800 |
commit | fad85e52e57f8672560b47803dcf1845adaa3dca (patch) | |
tree | ed3284c795f9058570bc6a99a953a3eee4e6745a | |
parent | 038aaec1cd926b4ad2b304cfc8b0cdf21870d068 (diff) |
Delete rw_semaphore.wait_lock configure check
Last use of wait_lock was removed in "Linux 5.3 compat: retire
rw_tryupgrade()" (e7a99dab2b065ac2f8736a65d1b226d21754d771).
Fixes the issue reported in
https://github.com/openzfs/zfs/issues/11097#issuecomment-714532367
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Orivej Desh <[email protected]>
Closes #11309
-rw-r--r-- | config/kernel-rwsem.m4 | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/config/kernel-rwsem.m4 b/config/kernel-rwsem.m4 index 824f4a3ff..d3a64a8ef 100644 --- a/config/kernel-rwsem.m4 +++ b/config/kernel-rwsem.m4 @@ -1,30 +1,4 @@ dnl # -dnl # 3.1 API Change -dnl # -dnl # The rw_semaphore.wait_lock member was changed from spinlock_t to -dnl # raw_spinlock_t at commit ddb6c9b58a19edcfac93ac670b066c836ff729f1. -dnl # -AC_DEFUN([ZFS_AC_KERNEL_SRC_RWSEM_SPINLOCK_IS_RAW], [ - ZFS_LINUX_TEST_SRC([rwsem_spinlock_is_raw], [ - #include <linux/rwsem.h> - ],[ - struct rw_semaphore dummy_semaphore __attribute__ ((unused)); - raw_spinlock_t dummy_lock __attribute__ ((unused)) = - __RAW_SPIN_LOCK_INITIALIZER(dummy_lock); - dummy_semaphore.wait_lock = dummy_lock; - ]) -]) - -AC_DEFUN([ZFS_AC_KERNEL_RWSEM_SPINLOCK_IS_RAW], [ - AC_MSG_CHECKING([whether struct rw_semaphore member wait_lock is raw]) - ZFS_LINUX_TEST_RESULT([rwsem_spinlock_is_raw], [ - AC_MSG_RESULT(yes) - ],[ - ZFS_LINUX_TEST_ERROR([rwsem_spinlock_is_raw]) - ]) -]) - -dnl # dnl # 3.16 API Change dnl # dnl # rwsem-spinlock "->activity" changed to "->count" @@ -76,13 +50,11 @@ AC_DEFUN([ZFS_AC_KERNEL_RWSEM_ATOMIC_LONG_COUNT], [ ]) AC_DEFUN([ZFS_AC_KERNEL_SRC_RWSEM], [ - ZFS_AC_KERNEL_SRC_RWSEM_SPINLOCK_IS_RAW ZFS_AC_KERNEL_SRC_RWSEM_ACTIVITY ZFS_AC_KERNEL_SRC_RWSEM_ATOMIC_LONG_COUNT ]) AC_DEFUN([ZFS_AC_KERNEL_RWSEM], [ - ZFS_AC_KERNEL_RWSEM_SPINLOCK_IS_RAW ZFS_AC_KERNEL_RWSEM_ACTIVITY ZFS_AC_KERNEL_RWSEM_ATOMIC_LONG_COUNT ]) |