MFC: Reduce probability of unmount failing after having unmounted snapshots.

Approved by:	re (kensmith)
This commit is contained in:
tegge 2006-03-22 17:44:42 +00:00
parent 5321591e56
commit 8529972b50

View File

@ -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.