Commit e29e175b0f40cffc86068156733def14a7a533ab
Committed by
Linus Torvalds
1 parent
35ae834fa0
Exists in
master
and in
4 other branches
[PATCH] initialise pi_lock if CONFIG_RT_MUTEXES=N
Fixes a bogus lockdep warning which causes lockdep to disable itself. Acked-by: Ingo Molnar <mingo@elte.hu> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
kernel/fork.c
... | ... | @@ -933,8 +933,8 @@ |
933 | 933 | |
934 | 934 | static inline void rt_mutex_init_task(struct task_struct *p) |
935 | 935 | { |
936 | -#ifdef CONFIG_RT_MUTEXES | |
937 | 936 | spin_lock_init(&p->pi_lock); |
937 | +#ifdef CONFIG_RT_MUTEXES | |
938 | 938 | plist_head_init(&p->pi_waiters, &p->pi_lock); |
939 | 939 | p->pi_blocked_on = NULL; |
940 | 940 | #endif |