Reduce probability of unmount failing after having unmounted snapshots.

This commit is contained in:
Tor Egge 2006-03-19 21:09:19 +00:00
parent 8c86028f11
commit 95e7a3c3ac

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.