Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 3 Sep 2002 19:09:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 3 Sep 2002 19:09:55 -0400 Received: from [209.195.52.32] ([209.195.52.32]:2257 "HELO warden2.diginsite.com") by vger.kernel.org with SMTP id ; Tue, 3 Sep 2002 19:09:54 -0400 From: David Lang To: "Peter T. Breuer" Cc: linux-kernel@vger.kernel.org Date: Tue, 3 Sep 2002 16:05:27 -0700 (PDT) Subject: Re: (fwd) Re: [RFC] mount flag "direct" In-Reply-To: <200209032148.g83LmWU14950@oboe.it.uc3m.es> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 954 Lines: 22 On Tue, 3 Sep 2002, Peter T. Breuer wrote: > > in addition you will have lots of potential races as one system reads a > > block of data, modifies it, then writes it while the other system does the > > Uh, I am confident that there can be no races with respect to data > writes provided I manage to make the VFS operations atomic via > appropriate shared locking. What one has to get rid of is cached > metadata state. I'm open to suggestions. well you will have to change the filesystems to attempt your new atomic VFS operations, today the kernel ext2 driver can just aquire a lock, diddle with whatever it wants, and write the result. it doesn't do anything that the VFS will see as atomic. David Lang - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/