aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2019-07-12 13:27:24 -0700
committerBrian Behlendorf <[email protected]>2019-07-17 15:07:46 -0700
commit041205afee7e151a0ac10c9b5314186cf65417dc (patch)
treebbdb0946146595835459122812085230874e35e8 /module
parenta649768a1771236c4af783ec3f03b1d6da9b5862 (diff)
Linux 5.3 compat: rw_semaphore owner
Commit https://github.com/torvalds/linux/commit/94a9717b updated the rwsem's owner field to contain additional flags describing the rwsem's state. Rather then update the wrappers to mask out these bits, the code no longer relies on the owner stored by the kernel. This does increase the size of a krwlock_t but it makes the implementation less sensitive to future kernel changes. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tomohiro Kusumi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #9029
Diffstat (limited to 'module')
-rw-r--r--module/spl/spl-rwlock.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/module/spl/spl-rwlock.c b/module/spl/spl-rwlock.c
index 86727ed19..886e16924 100644
--- a/module/spl/spl-rwlock.c
+++ b/module/spl/spl-rwlock.c
@@ -119,9 +119,6 @@ rwsem_tryupgrade(struct rw_semaphore *rwsem)
if (__rwsem_tryupgrade(rwsem)) {
rwsem_release(&rwsem->dep_map, 1, _RET_IP_);
rwsem_acquire(&rwsem->dep_map, 0, 1, _RET_IP_);
-#ifdef CONFIG_RWSEM_SPIN_ON_OWNER
- rwsem->owner = current;
-#endif
return (1);
}
return (0);