MFC: Reduce probability of unmount failing after having unmounted snapshots.
Approved by: re (kensmith)
This commit is contained in:
parent
5321591e56
commit
8529972b50
@ -1002,6 +1002,7 @@ ffs_flushfiles(mp, flags, td)
|
||||
if ((error = vflush(mp, 0, SKIPSYSTEM | flags, td)) != 0)
|
||||
return (error);
|
||||
ffs_snapshot_unmount(mp);
|
||||
flags |= FORCECLOSE;
|
||||
/*
|
||||
* Here we fall through to vflush again to ensure
|
||||
* that we have gotten rid of all the system vnodes.
|
||||
|
Loading…
x
Reference in New Issue
Block a user