Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Sep 2016 09:10:30 +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-11@freebsd.org
Subject:   svn commit: r306171 - stable/11/sys/ufs/ffs
Message-ID:  <201609220910.u8M9AUh6015877@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Sep 22 09:10:30 2016
New Revision: 306171
URL: https://svnweb.freebsd.org/changeset/base/306171

Log:
  MFC r305599:
  Do not leak transient ENOLCK error from flush_newblk_dep() loop.

Modified:
  stable/11/sys/ufs/ffs/ffs_softdep.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ufs/ffs/ffs_softdep.c
==============================================================================
--- stable/11/sys/ufs/ffs/ffs_softdep.c	Thu Sep 22 09:08:11 2016	(r306170)
+++ stable/11/sys/ufs/ffs/ffs_softdep.c	Thu Sep 22 09:10:30 2016	(r306171)
@@ -12852,6 +12852,7 @@ flush_newblk_dep(vp, mp, lbn)
 			    LK_INTERLOCK, BO_LOCKPTR(bo));
 			if (error == ENOLCK) {
 				ACQUIRE_LOCK(ump);
+				error = 0;
 				continue; /* Slept, retry */
 			}
 			if (error != 0)



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