diff options
Diffstat (limited to 'kernel/mutex.c')
-rw-r--r-- | kernel/mutex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/mutex.c b/kernel/mutex.c index 5d79781394a3..e1fb73510409 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c | |||
@@ -248,7 +248,9 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, | |||
248 | 248 | ||
249 | /* didnt get the lock, go to sleep: */ | 249 | /* didnt get the lock, go to sleep: */ |
250 | spin_unlock_mutex(&lock->wait_lock, flags); | 250 | spin_unlock_mutex(&lock->wait_lock, flags); |
251 | __schedule(); | 251 | preempt_enable_no_resched(); |
252 | schedule(); | ||
253 | preempt_disable(); | ||
252 | spin_lock_mutex(&lock->wait_lock, flags); | 254 | spin_lock_mutex(&lock->wait_lock, flags); |
253 | } | 255 | } |
254 | 256 | ||