diff options
author | kib <kib@FreeBSD.org> | 2016-09-22 09:10:30 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-09-22 09:10:30 +0000 |
commit | 3753da0e33684f442867c5841ecd869e2677d06d (patch) | |
tree | 358dbb6772bc222c9b6eb3c8c2d4aebd0503039b /sys/ufs | |
parent | b087241a29c459bb45c8bf8418390fd5683d12a6 (diff) | |
download | FreeBSD-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.c | 1 |
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) |