Module Name: src Committed By: chs Date: Sat May 12 18:42:08 UTC 2012
Modified Files: src/sys/kern: vfs_subr.c Log Message: remove a bogus optimization introduced in the previous change. fixes hangs in the rump/rumpvfs/t_etfs test. To generate a diff of this commit: cvs rdiff -u -r1.434 -r1.435 src/sys/kern/vfs_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/vfs_subr.c diff -u src/sys/kern/vfs_subr.c:1.434 src/sys/kern/vfs_subr.c:1.435 --- src/sys/kern/vfs_subr.c:1.434 Sun Apr 29 22:54:00 2012 +++ src/sys/kern/vfs_subr.c Sat May 12 18:42:08 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_subr.c,v 1.434 2012/04/29 22:54:00 chs Exp $ */ +/* $NetBSD: vfs_subr.c,v 1.435 2012/05/12 18:42:08 chs Exp $ */ /*- * Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.434 2012/04/29 22:54:00 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.435 2012/05/12 18:42:08 chs Exp $"); #include "opt_ddb.h" #include "opt_compat_netbsd.h" @@ -290,9 +290,6 @@ vflushbuf(struct vnode *vp, int flags) mutex_enter(vp->v_interlock); (void) VOP_PUTPAGES(vp, 0, 0, pflags); - if (LIST_EMPTY(&vp->v_dirtyblkhd) || (flags & FSYNC_DATAONLY)) - return 0; - loop: mutex_enter(&bufcache_lock); for (bp = LIST_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) {