From owner-cvs-all@FreeBSD.ORG Sun Jun 12 08:26:14 2005 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DBEE316A41C; Sun, 12 Jun 2005 08:26:13 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.3/8.13.1) with ESMTP id j5C8QDI2062845; Sun, 12 Jun 2005 04:26:13 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j5C8QDsA062844; Sun, 12 Jun 2005 04:26:13 -0400 (EDT) (envelope-from green) Date: Sun, 12 Jun 2005 04:26:12 -0400 From: Brian Fundakowski Feldman To: Alfred Perlstein Message-ID: <20050612082612.GF66188@green.homeunix.org> References: <200506102350.j5ANofFM008212@repoman.freebsd.org> <20050611034930.GY17867@elvis.mu.org> <20050611064956.GC66188@green.homeunix.org> <20050611141021.GD17867@elvis.mu.org> <20050611170425.GD66188@green.homeunix.org> <20050611174617.GE17867@elvis.mu.org> <20050611212534.GE66188@green.homeunix.org> <20050612080833.GJ17867@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050612080833.GJ17867@elvis.mu.org> User-Agent: Mutt/1.5.6i Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/nfsclient nfs_bio.c nfs_vfsops.c nfsargs.h nfsmount.h src/sys/sys buf.h bufobj.h src/sys/kern vfs_bio.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2005 08:26:14 -0000 On Sun, Jun 12, 2005 at 01:08:33AM -0700, Alfred Perlstein wrote: > * Brian Fundakowski Feldman [050611 14:25] wrote: > > On Sat, Jun 11, 2005 at 10:46:17AM -0700, Alfred Perlstein wrote: > > > * Brian Fundakowski Feldman [050611 10:04] wrote: > > > > > > > > Well, the easy solution is just fsync(2) :) This change jibes with > > > > Terry's explanation (thanks, Juli). It would be good to implement > > > > the rest of the functionality for non-blocking NFS client, too, but I > > > > think that can be dne gradually over time. > > > > > > lol. > > > FWIW, I was aware of Terry's explanation, I just consider it bunk. > > > > Heh. Well, we can always throw things under a kernel option. I never > > saw Terry's e-mail on the topic until just now -- my understanding was > > that this was generally the Right Thing To Do after spending a while > > reading POSIX/SUS (due to gad pointing out that it was definitely a > > bad idea to just return short writes). > > Seriously, have you tested what happens to a libc_r app that > opens an nfs file F_SYNC? My guess is that it's not pretty. This code path is related to O_NONBLOCK, not O_FSYNC. O_FSYNC is synonymous with the slow fallback path that large transactional block now takes, rather than deadlocking. O_NONBLOCK really means that whatever they do, they are required to check for EAGAIN. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\