From owner-cvs-src@FreeBSD.ORG Thu May 25 01:01:29 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1EC716A44A; Thu, 25 May 2006 01:01:29 +0000 (UTC) (envelope-from ups@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8094D43D45; Thu, 25 May 2006 01:01:29 +0000 (GMT) (envelope-from ups@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k4P10aMU002449; Thu, 25 May 2006 01:00:36 GMT (envelope-from ups@repoman.freebsd.org) Received: (from ups@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k4P10a3P002448; Thu, 25 May 2006 01:00:36 GMT (envelope-from ups) Message-Id: <200605250100.k4P10a3P002448@repoman.freebsd.org> From: Stephan Uphoff Date: Thu, 25 May 2006 01:00:36 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern vfs_subr.c src/sys/nfsclient nfs_bio.c src/sys/fs/smbfs smbfs_io.c src/sys/fs/nwfs nwfs_io.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2006 01:01:29 -0000 ups 2006-05-25 01:00:36 UTC FreeBSD src repository Modified files: sys/kern vfs_subr.c sys/nfsclient nfs_bio.c sys/fs/smbfs smbfs_io.c sys/fs/nwfs nwfs_io.c Log: Do not set B_NOCACHE on buffers when releasing them in flushbuflist(). If B_NOCACHE is set the pages of vm backed buffers will be invalidated. However clean buffers can be backed by dirty VM pages so invalidating them can lead to data loss. Add support for flush dirty page in the data invalidation function of some network file systems. This fixes data losses during vnode recycling (and other code paths using invalbuf(*,V_SAVE,*,*)) for data written using an mmaped file. Collaborative effort by: jhb@,mohans@,peter@,ps@,ups@ Reviewed by: tegge@ MFC after: 7 days Revision Changes Path 1.43 +4 -0 src/sys/fs/nwfs/nwfs_io.c 1.35 +4 -0 src/sys/fs/smbfs/smbfs_io.c 1.673 +1 -1 src/sys/kern/vfs_subr.c 1.157 +11 -0 src/sys/nfsclient/nfs_bio.c