diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-02-24 09:54:54 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-02-24 12:10:52 +0100 |
commit | a359d62fa46b9c41621fec1c3b31730cfc436b40 (patch) | |
tree | bfc426dd361565ab75e3a58084a32236b6a89d78 /include/linux/rwsem-spinlock.h | |
parent | d0ce166dd4c76b1eb484aa68f1cddaafdeef9238 (diff) | |
download | lwn-a359d62fa46b9c41621fec1c3b31730cfc436b40.tar.gz lwn-a359d62fa46b9c41621fec1c3b31730cfc436b40.zip |
rwsem: Make inner lock raw
There is no reason to convert the lock protecting rwsems (the
ownerless variant) to a sleeping spinlock on -rt. Convert it to raw.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/rwsem-spinlock.h')
-rw-r--r-- | include/linux/rwsem-spinlock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/rwsem-spinlock.h b/include/linux/rwsem-spinlock.h index 17df0dcdbe99..6608521725f4 100644 --- a/include/linux/rwsem-spinlock.h +++ b/include/linux/rwsem-spinlock.h @@ -33,7 +33,7 @@ struct rwsem_waiter; */ struct rw_anon_semaphore { __s32 activity; - spinlock_t wait_lock; + raw_spinlock_t wait_lock; struct list_head wait_list; #ifdef CONFIG_DEBUG_LOCK_ALLOC struct lockdep_map dep_map; @@ -47,7 +47,7 @@ struct rw_anon_semaphore { #endif #define __RWSEM_ANON_INITIALIZER(name) \ -{ 0, __SPIN_LOCK_UNLOCKED(name.wait_lock), LIST_HEAD_INIT((name).wait_list) \ +{ 0, __RAW_SPIN_LOCK_UNLOCKED(name.wait_lock), LIST_HEAD_INIT((name).wait_list) \ __RWSEM_ANON_DEP_MAP_INIT(name) } #define DECLARE_ANON_RWSEM(name) \ @@ -89,7 +89,7 @@ extern void __downgrade_write(struct rw_anon_semaphore *sem); */ struct rw_semaphore { __s32 activity; - spinlock_t wait_lock; + raw_spinlock_t wait_lock; struct list_head wait_list; #ifdef CONFIG_DEBUG_LOCK_ALLOC struct lockdep_map dep_map; @@ -103,7 +103,7 @@ struct rw_semaphore { #endif #define __RWSEM_INITIALIZER(name) \ -{ 0, __SPIN_LOCK_UNLOCKED(name.wait_lock), LIST_HEAD_INIT((name).wait_list) \ +{ 0, __RAW_SPIN_LOCK_UNLOCKED(name.wait_lock), LIST_HEAD_INIT((name).wait_list) \ __RWSEM_DEP_MAP_INIT(name) } #define DECLARE_RWSEM(name) \ |