Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172048173
D24022.id69772.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
641 B
Referenced Files
None
Subscribers
None
D24022.id69772.diff
View Options
Index: head/sys/kern/vfs_mount.c
===================================================================
--- head/sys/kern/vfs_mount.c
+++ head/sys/kern/vfs_mount.c
@@ -900,7 +900,7 @@
{
struct vattr va;
struct mount *mp;
- struct vnode *newdp;
+ struct vnode *newdp, *rootvp;
int error, error1;
ASSERT_VOP_ELOCKED(vp, __func__);
@@ -967,6 +967,9 @@
(error1 = VFS_ROOT(mp, LK_EXCLUSIVE, &newdp)) != 0) {
if (error1 != 0) {
error = error1;
+ rootvp = vfs_cache_root_clear(mp);
+ if (rootvp != NULL)
+ vrele(rootvp);
if ((error1 = VFS_UNMOUNT(mp, 0)) != 0)
printf("VFS_UNMOUNT returned %d\n", error1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 16, 5:41 PM (3 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39023045
Default Alt Text
D24022.id69772.diff (641 B)
Attached To
Mode
D24022: fix for NFS mount hang on "mntref" caused by r353150
Attached
Detach File
Event Timeline
Log In to Comment