Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 2008 16:08:36 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r185210 - in stable/7/sys: . modules/cxgb vm
Message-ID:  <200811231608.mANG8aPg056631@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Nov 23 16:08:36 2008
New Revision: 185210
URL: http://svn.freebsd.org/changeset/base/185210

Log:
  MFC r185012:
  Instead of forcing vn_start_write() to reset mp back to NULL for the
  failed calls with non-NULL vp, explicitely clear mp after failure.
  
  Approved by:	re (kensmith)
  PR:	123768

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/modules/cxgb/   (props changed)
  stable/7/sys/vm/vm_pageout.c

Modified: stable/7/sys/vm/vm_pageout.c
==============================================================================
--- stable/7/sys/vm/vm_pageout.c	Sun Nov 23 16:06:41 2008	(r185209)
+++ stable/7/sys/vm/vm_pageout.c	Sun Nov 23 16:08:36 2008	(r185210)
@@ -947,8 +947,7 @@ rescan0:
 				vp = object->handle;
 				if (vp->v_type == VREG &&
 				    vn_start_write(vp, &mp, V_NOWAIT) != 0) {
-					KASSERT(mp == NULL,
-					    ("vm_pageout_scan: mp != NULL"));
+					mp = NULL;
 					++pageout_lock_miss;
 					if (object->flags & OBJ_MIGHTBEDIRTY)
 						vnodes_skipped++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811231608.mANG8aPg056631>