Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
mutex: Fix optimistic spinning vs. BKL

+7
+7
kernel/mutex.c
··· 172 172 struct thread_info *owner; 173 173 174 174 /* 175 + * If we own the BKL, then don't spin. The owner of 176 + * the mutex might be waiting on us to release the BKL. 177 + */ 178 + if (unlikely(current->lock_depth >= 0)) 179 + break; 180 + 181 + /* 175 182 * If there's an owner, wait for it to either 176 183 * release the lock or go to sleep. 177 184 */