X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Fmutex.c;h=2c938e2337cd36f3e627bb5758186aa7b4e0a327;hb=2e77defc5da779888f3cf65e66cd3d47ae2d690f;hp=c4195fa98900b65528bf5ee2229f7eeadfa5c4d7;hpb=1e05ff020f692de078226fd5480adc76317e37bb;p=~andy%2Flinux diff --git a/kernel/mutex.c b/kernel/mutex.c index c4195fa9890..2c938e2337c 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c @@ -160,14 +160,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, */ for (;;) { - struct thread_info *owner; - - /* - * If we own the BKL, then don't spin. The owner of - * the mutex might be waiting on us to release the BKL. - */ - if (unlikely(current->lock_depth >= 0)) - break; + struct task_struct *owner; /* * If there's an owner, wait for it to either