Author: kib
Date: Thu Sep 22 10:58:19 2016
New Revision: 306183
URL: https://svnweb.freebsd.org/changeset/base/306183

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

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

Modified: stable/9/sys/ufs/ffs/ffs_softdep.c
==============================================================================
--- stable/9/sys/ufs/ffs/ffs_softdep.c  Thu Sep 22 10:54:30 2016        
(r306182)
+++ stable/9/sys/ufs/ffs/ffs_softdep.c  Thu Sep 22 10:58:19 2016        
(r306183)
@@ -12577,6 +12577,7 @@ flush_newblk_dep(vp, mp, lbn)
                            LK_INTERLOCK, BO_MTX(bo));
                        if (error == ENOLCK) {
                                ACQUIRE_LOCK(&lk);
+                               error = 0;
                                continue; /* Slept, retry */
                        }
                        if (error != 0)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to