Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2015 20:48:01 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283968 - head/sys/ufs/ffs
Message-ID:  <201506032048.t53Km1nc074499@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Jun  3 20:48:00 2015
New Revision: 283968
URL: https://svnweb.freebsd.org/changeset/base/283968

Log:
  Syncing a directory vnode might drop the vnode lock in the
  softdep_sync() similarly to the regular vnode sync.  Allow retry for
  both vnode types.
  
  Reported and tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/ufs/ffs/ffs_vnops.c

Modified: head/sys/ufs/ffs/ffs_vnops.c
==============================================================================
--- head/sys/ufs/ffs/ffs_vnops.c	Wed Jun  3 20:04:39 2015	(r283967)
+++ head/sys/ufs/ffs/ffs_vnops.c	Wed Jun  3 20:48:00 2015	(r283968)
@@ -201,8 +201,8 @@ retry:
 		 * bo_dirty list. Recheck and resync as needed.
 		 */
 		BO_LOCK(bo);
-		if (vp->v_type == VREG && (bo->bo_numoutput > 0 ||
-		    bo->bo_dirty.bv_cnt > 0)) {
+		if ((vp->v_type == VREG || vp->v_type == VDIR) &&
+		    (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0)) {
 			BO_UNLOCK(bo);
 			goto retry;
 		}



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