From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [PATCH] fs: fix lock initialization Date: Wed, 6 Jul 2011 15:12:39 -0600 Message-ID: <20110706211239.GC389@parisc-linux.org> References: <87iprf3dgs.fsf@tucsk.pomaz.szeredi.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Miklos Szeredi , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, stable@kernel.org To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Jul 06, 2011 at 10:40:44AM -0700, Linus Torvalds wrote: > Ugh. Code that depends on SLAB initializers is broken. > > The reason for those initializers are traditionally "better cache > behavior" where you don't need to initialize everything at allocation > time, but the whole concept is almost invariably a disaster. This is a > prime example of it. It'd be good to have that documented somewhere. When I wrote this code (a decade ago), that wasn't my understanding. -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step."