From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265252AbUFRXhW (ORCPT ); Fri, 18 Jun 2004 19:37:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263735AbUFRXXl (ORCPT ); Fri, 18 Jun 2004 19:23:41 -0400 Received: from fw.osdl.org ([65.172.181.6]:22459 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S265749AbUFRXW7 (ORCPT ); Fri, 18 Jun 2004 19:22:59 -0400 Date: Fri, 18 Jun 2004 16:25:40 -0700 From: Andrew Morton To: Chris Mason Cc: viro@parcelfarce.linux.theplanet.co.uk, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] __bd_forget should wait for inodes using the mapping Message-Id: <20040618162540.620a58b6.akpm@osdl.org> In-Reply-To: <1087600516.1512.26.camel@watt.suse.com> References: <1087523668.8002.103.camel@watt.suse.com> <20040618021043.GV12308@parcelfarce.linux.theplanet.co.uk> <1087563810.8002.116.camel@watt.suse.com> <20040618142207.GW12308@parcelfarce.linux.theplanet.co.uk> <1087570031.8002.153.camel@watt.suse.com> <20040618151558.GX12308@parcelfarce.linux.theplanet.co.uk> <1087573303.8002.172.camel@watt.suse.com> <20040618154330.GY12308@parcelfarce.linux.theplanet.co.uk> <1087574752.8002.194.camel@watt.suse.com> <20040618132628.45e1d364.akpm@osdl.org> <1087591484.1512.14.camel@watt.suse.com> <20040618142710.5d467d1b.akpm@osdl.org> <1087600516.1512.26.camel@watt.suse.com> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Chris Mason wrote: > > On Fri, 2004-06-18 at 17:27, Andrew Morton wrote: > > Chris Mason wrote: > > > > > > [ skip writing block-special inodes ] > > > > > > Hmmm, any risk in missing data integrity syncs because of this? > > > > Need to think about that. sys_fsync(), sys_fdatasync() and sys_msync() go > > direct to file->f_mapping and sys_sync() will sync the blockdev via its > > kernel-internal inode. What does that leave? > > I was worried about O_SYNC, That actually looks safe though, > generic_osync_inode will first write the mapping via filemap_fdatawrite > (the mapping comes from f_mapping). > > It doesn't really give me warm fuzzies, but looks safe enough. Al had a > slightly different plan, maybe with your patch we can push his larger > changes off a bit? >>From a design POV the patch I sent isn't very nice, and does add code to a warmpath. If there's some way in which we can defer the i_mapping switch until all references have gone away, that would be better?