[patch 11/31] initialise pi_lock if CONFIG_RT_MUTEXES=N

Greg KH
2007-03-19T21:52:52Z

[-- Attachment #1: initialise-pi_lock-if-config_rt_mutexes-n.patch --]
[-- Type: text/plain, Size: 778 bytes --]

-stable review patch. If anyone has any objections, please let us know.

------------------

From: Zilvinas Valinskas <zilvinas@wilibox.com>

Fixes a bogus lockdep warning which causes lockdep to disable itself.

Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

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

--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -933,8 +933,8 @@ asmlinkage long sys_set_tid_address(int

static inline void rt_mutex_init_task(struct task_struct *p)
{
-#ifdef CONFIG_RT_MUTEXES
spin_lock_init(&p->pi_lock);
+#ifdef CONFIG_RT_MUTEXES
plist_head_init(&p->pi_waiters, &p->pi_lock);
p->pi_blocked_on = NULL;
#endif

--