Reduce probability of unmount failing after having unmounted snapshots.

This commit is contained in:
tegge 2006-03-19 21:09:19 +00:00
parent fe329e36c7
commit c8c59a31e2

View File

@ -1044,6 +1044,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.