Kris Kennaway found that for '/' NFS mounts, the MPSAFE mount flag was

not being set, which means Giant would be acquired for these mounts.
This commit is contained in:
Mohan Srinivasan 2006-05-30 20:32:44 +00:00
parent b1b4282160
commit 64c3892747
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159081

View File

@ -773,8 +773,9 @@ nfs_mount(struct mount *mp, struct thread *td)
goto out;
args.fh = nfh;
error = mountnfs(&args, mp, nam, hst, &vp, td->td_ucred);
mp->mnt_kern_flag |= MNTK_MPSAFE;
out:
if (!error)
mp->mnt_kern_flag |= MNTK_MPSAFE;
return (error);
}