mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
ufs: stop using LK_SLEEPFAIL in ffs_sync
It provides nothing as either locking succeeds or fails with ENOENT as is.
This commit is contained in:
parent
52640d6174
commit
4d9b2ed34b
|
@ -1711,7 +1711,7 @@ ffs_sync(struct mount *mp, int waitfor)
|
|||
}
|
||||
if (waitfor == MNT_WAIT)
|
||||
lockreq = LK_EXCLUSIVE;
|
||||
lockreq |= LK_INTERLOCK | LK_SLEEPFAIL;
|
||||
lockreq |= LK_INTERLOCK;
|
||||
loop:
|
||||
/* Grab snapshot of secondary write counts */
|
||||
MNT_ILOCK(mp);
|
||||
|
@ -1741,7 +1741,7 @@ ffs_sync(struct mount *mp, int waitfor)
|
|||
continue;
|
||||
}
|
||||
if ((error = vget(vp, lockreq)) != 0) {
|
||||
if (error == ENOENT || error == ENOLCK) {
|
||||
if (error == ENOENT) {
|
||||
MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp);
|
||||
goto loop;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue