From owner-cvs-all Mon Nov 5 10:48:59 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E486137B416; Mon, 5 Nov 2001 10:48:54 -0800 (PST) Received: (from dillon@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA5ImsJ76554; Mon, 5 Nov 2001 10:48:54 -0800 (PST) (envelope-from dillon) Message-Id: <200111051848.fA5ImsJ76554@freefall.freebsd.org> From: Matt Dillon Date: Mon, 5 Nov 2001 10:48:54 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/md md.c src/sys/kern vfs_bio.c vfs_cluster.c src/sys/nfsclient nfs_bio.c src/sys/sys buf.h vnode.h src/sys/ufs/ufs ufs_readwrite.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dillon 2001/11/05 10:48:54 PST Modified files: sys/dev/md md.c sys/kern vfs_bio.c vfs_cluster.c sys/nfsclient nfs_bio.c sys/sys buf.h vnode.h sys/ufs/ufs ufs_readwrite.c Log: Implement IO_NOWDRAIN and B_NOWDRAIN - prevents the buffer cache from blocking in wdrain during a write. This flag needs to be used in devices whos strategy routines turn-around and issue another high level I/O, such as when MD turns around and issues a VOP_WRITE to vnode backing store, in order to avoid deadlocking the dirty buffer draining code. Remove a vprintf() warning from MD when the backing vnode is found to be in-use. The syncer of buf_daemon could be flushing the backing vnode at the time of an MD operation so the warning is not correct. MFC after: 1 week Revision Changes Path 1.48 +8 -5 src/sys/dev/md/md.c 1.292 +9 -4 src/sys/kern/vfs_bio.c 1.115 +1 -1 src/sys/kern/vfs_cluster.c 1.103 +7 -1 src/sys/nfsclient/nfs_bio.c 1.122 +7 -2 src/sys/sys/buf.h 1.163 +1 -0 src/sys/sys/vnode.h 1.83 +3 -1 src/sys/ufs/ufs/ufs_readwrite.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message