Blob Blame History Raw
Subject: Linux-RT 2.6.26-RT
From: http://www.kernel.org/pub/linux/kernel/projects/rt/
Acked-by: Sven-Thorsten Dietrich <sdietrich@suse.de>
From: Steven Rostedt <srostedt@redhat.com>

Limit the number of readers to number of CPUS by default.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>

---
 kernel/rtmutex.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.26/kernel/rtmutex.c
===================================================================
--- linux-2.6.26.orig/kernel/rtmutex.c
+++ linux-2.6.26/kernel/rtmutex.c
@@ -1016,7 +1016,7 @@ __rt_spin_lock_init(spinlock_t *lock, ch
 }
 EXPORT_SYMBOL(__rt_spin_lock_init);
 
-int rt_rwlock_limit;
+int rt_rwlock_limit = NR_CPUS;
 
 static inline int rt_release_bkl(struct rt_mutex *lock, unsigned long flags);
 static inline void rt_reacquire_bkl(int saved_lock_depth);