diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-10-01 14:21:36 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-10-01 14:21:36 +0200 |
commit | 048b718029033af117870d3da47da12995be14a3 (patch) | |
tree | b3d4bf5219cd6543c35cb79d1aa08ae98cf2a8af /kernel/rtmutex.c | |
parent | 47ea91b4052d9e94b9dca5d7a3d947fbebd07ba9 (diff) | |
parent | afe24b122eb6edb5f1cb942570ac8d766105c7fc (diff) |
Merge branch 'rcu/next' of git://github.com/paulmckrcu/linux into core/rcu
Diffstat (limited to 'kernel/rtmutex.c')
-rw-r--r-- | kernel/rtmutex.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index 255e1662acd..5e8d9cce747 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c @@ -579,6 +579,7 @@ __rt_mutex_slowlock(struct rt_mutex *lock, int state, struct rt_mutex_waiter *waiter) { int ret = 0; + int was_disabled; for (;;) { /* Try to acquire the lock: */ @@ -601,10 +602,17 @@ __rt_mutex_slowlock(struct rt_mutex *lock, int state, raw_spin_unlock(&lock->wait_lock); + was_disabled = irqs_disabled(); + if (was_disabled) + local_irq_enable(); + debug_rt_mutex_print_deadlock(waiter); schedule_rt_mutex(lock); + if (was_disabled) + local_irq_disable(); + raw_spin_lock(&lock->wait_lock); set_current_state(state); } |