diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-03-04 12:10:03 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-03-04 12:10:03 +0000 |
commit | 96767d90908e8c37f547057a4ead0eae2959d8dc (patch) | |
tree | bfd6089e5623055c8291448d4d283241280871b6 /sys/ufs | |
parent | 80cc01776a9ab95796ea0925052069017f5a9612 (diff) | |
download | FreeBSD-src-96767d90908e8c37f547057a4ead0eae2959d8dc.zip FreeBSD-src-96767d90908e8c37f547057a4ead0eae2959d8dc.tar.gz |
Move setting of MNTK_MPSAFE flag before UFS1 extended attribute
auto-start so that the flag is set before we start performing I/O
in the auto-start routine.
MFC after: 2 weeks
Suggested by: kib
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index f226750..150a5b4d 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -865,6 +865,9 @@ ffs_mountfs(devvp, mp, td) /* * Initialize filesystem stat information in mount struct. */ + MNT_ILOCK(mp); + mp->mnt_kern_flag |= MNTK_MPSAFE; + MNT_IUNLOCK(mp); #ifdef UFS_EXTATTR #ifdef UFS_EXTATTR_AUTOSTART /* @@ -880,9 +883,6 @@ ffs_mountfs(devvp, mp, td) (void) ufs_extattr_autostart(mp, td); #endif /* !UFS_EXTATTR_AUTOSTART */ #endif /* !UFS_EXTATTR */ - MNT_ILOCK(mp); - mp->mnt_kern_flag |= MNTK_MPSAFE; - MNT_IUNLOCK(mp); return (0); out: if (bp) |