lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1005180925180.4195@i5.linux-foundation.org>
Date:	Tue, 18 May 2010 09:26:03 -0700 (PDT)
From:	Linus Torvalds <torvalds@...ux-foundation.org>
To:	Ingo Molnar <mingo@...e.hu>
cc:	mingo@...hat.com, hpa@...or.com, linux-kernel@...r.kernel.org,
	a.p.zijlstra@...llo.nl, benh@...nel.crashing.org,
	stable@...nel.org, tglx@...utronix.de, tony@...eyournoodle.com,
	linux-tip-commits@...r.kernel.org
Subject: Re: [tip:core/locking] mutex: Fix optimistic spinning vs. BKL



On Tue, 18 May 2010, Ingo Molnar wrote:
>
> Tony, mind sending a version of this patch that does not 
> include a jiffies based spinning loop?

I think it should just be the two-liner

	if (current->lock_depth >= 0)
		break;

in that loop. Plus comment.

		Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ