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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081230133737.GM496@one.firstfloor.org>
Date:	Tue, 30 Dec 2008 14:37:37 +0100
From:	Andi Kleen <andi@...stfloor.org>
To:	Christoph Hellwig <hch@....de>
Cc:	Jonathan Corbet <corbet@....net>, Andi Kleen <andi@...stfloor.org>,
	LKML <linux-kernel@...r.kernel.org>, Al@....sgi.com,
	Oleg Nesterov <oleg@...hat.com>, bfields@...ldses.org,
	xfs-masters@....sgi.com, Viro <viro@...IV.linux.org.uk>,
	Alan Cox <alan@...rguk.ukuu.org.uk>
Subject: Re: [xfs-masters] RFC: Fix f_flags races without the BKL

On Tue, Dec 30, 2008 at 02:04:39PM +0100, Christoph Hellwig wrote:
> On Tue, Dec 30, 2008 at 05:59:56AM -0700, Jonathan Corbet wrote:
> > On Mon, 29 Dec 2008 16:27:32 +0100
> > Andi Kleen <andi@...stfloor.org> wrote:
> > 
> > > I would prefer O_LOCK_FLAGS bit too. The global lock is not very nice
> > > and I don't doubt someone will come up with a workload which
> > > pounds on it.
> > 
> > Seems hard to imagine that it would be worse than the longstanding BKL
> > situation.  That said, the global lock is clearly an unsubtle approach,
> > and people don't like it.  I'd hoped to slip something quick through
> > the merge window, but that seems unlikely, especially, since I'm
> > allegedly on vacation.  I'll forget this patch for now and revisit it
> > next week.
> 
> The global lock is an improvement over the current situation, so given
> that we don't have any better counter-proposals we should put it in for
> 2.6.29.

That's not clear. Mutexes can be much slower than a spinlock
like BKL in some situations, mostly because they schedule more and
have generally more overhead.

As long as you don't have another BKL user contending the BKL
is likely faster than the mutex.

-Andi

-- 
ak@...ux.intel.com
--
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