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:
parent
b1b4282160
commit
64c3892747
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159081
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user