From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] UBIFS: kill BKL Date: Mon, 20 Jul 2009 08:51:25 -0400 Message-ID: <20090720125125.GA1714@infradead.org> References: <1248000922-4065-1-git-send-email-dedekind1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, Adrian Hunter , Artem Bityutskiy To: Artem Bityutskiy Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:55761 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753003AbZGTMvZ (ORCPT ); Mon, 20 Jul 2009 08:51:25 -0400 Content-Disposition: inline In-Reply-To: <1248000922-4065-1-git-send-email-dedekind1@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Jul 19, 2009 at 01:55:22PM +0300, Artem Bityutskiy wrote: > From: Artem Bityutskiy > > The BKL was pushed down from VFS to the file-systems. It used > to serialize mount/unmount/remount. UBIFS must be safe if several > file-systems are mounted/unmounted/re-mounted at the same time, > so kill kick the BKL out of UBIFS. On something slightly related - anohter part of the super_ops rework in 2.6.31 was that we now always push data out before calling into ->sync_fs to synchronize the metadata. This means the generic_sync_sb_inodes call in ubifs_sync_fs should go away now.