From: Ted Ts'o Subject: Re: [PATCH 0/5] mballoc: trivial code cleanup Date: Mon, 7 Feb 2011 17:24:50 -0500 Message-ID: <20110207222450.GF3457@thunk.org> References: <4D4E294E.4080507@coly.li> <20110207174125.GB3457@thunk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: i@coly.li, Ext4 Developers List To: Amir Goldstein Return-path: Received: from li9-11.members.linode.com ([67.18.176.11]:55975 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755178Ab1BGWYz (ORCPT ); Mon, 7 Feb 2011 17:24:55 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Mon, Feb 07, 2011 at 10:59:54PM +0200, Amir Goldstein wrote: > it says alloc_sem protects against lazy init of adjacent groups > and says nothing about protecting block group specific data structures... > > what am I missing??? You're missing ext4_mb_load_buddy(), which takes grp->alloc_sem, and which is released by ext4_mb_unload_buddy(). No, it's not the most obvious code in the world... - Ted