summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-09-22 09:10:30 +0000
committerkib <kib@FreeBSD.org>2016-09-22 09:10:30 +0000
commit3753da0e33684f442867c5841ecd869e2677d06d (patch)
tree358dbb6772bc222c9b6eb3c8c2d4aebd0503039b /sys/ufs
parentb087241a29c459bb45c8bf8418390fd5683d12a6 (diff)
downloadFreeBSD-src-3753da0e33684f442867c5841ecd869e2677d06d.zip
FreeBSD-src-3753da0e33684f442867c5841ecd869e2677d06d.tar.gz
MFC r305599:
Do not leak transient ENOLCK error from flush_newblk_dep() loop.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index c5c20f7..9819cf7 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -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)
OpenPOWER on IntegriCloud