Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144314726
D48558.id150350.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1021 B
Referenced Files
None
Subscribers
None
D48558.id150350.diff
View Options
diff --git a/sys/fs/nfsclient/nfs_clvfsops.c b/sys/fs/nfsclient/nfs_clvfsops.c
--- a/sys/fs/nfsclient/nfs_clvfsops.c
+++ b/sys/fs/nfsclient/nfs_clvfsops.c
@@ -1524,12 +1524,14 @@
#endif
NFSCL_DEBUG(3, "in mnt\n");
+ CURVNET_SET(CRED_TO_VNET(cred));
clp = NULL;
if (mp->mnt_flag & MNT_UPDATE) {
nmp = VFSTONFS(mp);
printf("%s: MNT_UPDATE is no longer handled here\n", __func__);
free(nam, M_SONAME);
free(tlscertname, M_NEWNFSMNT);
+ CURVNET_RESTORE();
return (0);
} else {
/* NFS-over-TLS requires that rpctls be functioning. */
@@ -1544,6 +1546,7 @@
if (error != 0) {
free(nam, M_SONAME);
free(tlscertname, M_NEWNFSMNT);
+ CURVNET_RESTORE();
return (error);
}
}
@@ -1816,6 +1819,7 @@
*/
NFSVOPUNLOCK(*vpp);
vfs_cache_root_set(mp, *vpp);
+ CURVNET_RESTORE();
return (0);
}
error = EIO;
@@ -1844,6 +1848,7 @@
free(nmp->nm_tlscertname, M_NEWNFSMNT);
free(nmp, M_NEWNFSMNT);
free(nam, M_SONAME);
+ CURVNET_RESTORE();
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 7:31 PM (9 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28489254
Default Alt Text
D48558.id150350.diff (1021 B)
Attached To
Mode
D48558: nfs: set vnet(9) context in mountnfs()
Attached
Detach File
Event Timeline
Log In to Comment