From owner-freebsd-fs@FreeBSD.ORG Fri Feb 6 19:03:47 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34D531065716 for ; Fri, 6 Feb 2009 19:03:47 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from gigi.cs.uoguelph.ca (gigi.cs.uoguelph.ca [131.104.94.210]) by mx1.freebsd.org (Postfix) with ESMTP id D14478FC2D for ; Fri, 6 Feb 2009 19:03:46 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by gigi.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id n16J3j63000985; Fri, 6 Feb 2009 14:03:45 -0500 Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id n16J7Wi28342; Fri, 6 Feb 2009 14:07:32 -0500 (EST) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Fri, 6 Feb 2009 14:07:32 -0500 (EST) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: admin@kedvenc.hu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.63 on 131.104.94.210 Cc: freebsd-fs@freebsd.org Subject: Re: nfs delay causing broken files X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2009 19:03:47 -0000 Well, maybe not SOL if you are willing to hack the kernel sources. If you change the following line in sys/nfsclient/nfs_bio.c as follows: if (nfs_directio_enable && (ioflag & IO_DIRECT) && vp->v_type == VREG) return nfs_directio_write(vp, uio, cred, ioflag); to if (nfs_directio_enable && vp->v_type == VREG) return nfs_directio_write(vp, uio, cred, ioflag); then all writes would be pushed to the server if nfs_directio_enable is set non-zero by sysctl. (In other words, O_DIRECT would be set for all opens on the NFS mounts.) Ugly, but if it fixes your problem...rick ps: I'm thinking that a mount option that does this might be useful?