Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103813641
D23955.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
672 B
Referenced Files
None
Subscribers
None
D23955.diff
View Options
Index: head/sys/fs/nullfs/null_vfsops.c
===================================================================
--- head/sys/fs/nullfs/null_vfsops.c
+++ head/sys/fs/nullfs/null_vfsops.c
@@ -281,13 +281,10 @@
NULLFSDEBUG("nullfs_root(mp = %p, vp = %p)\n", mp,
mntdata->nullm_lowerrootvp);
- error = vget(mntdata->nullm_lowerrootvp, (flags & ~LK_TYPE_MASK) |
- LK_EXCLUSIVE, curthread);
+ error = vget(mntdata->nullm_lowerrootvp, flags, curthread);
if (error == 0) {
error = null_nodeget(mp, mntdata->nullm_lowerrootvp, &vp);
if (error == 0) {
- if ((flags & LK_TYPE_MASK) == LK_SHARED)
- vn_lock(vp, LK_DOWNGRADE | LK_RETRY);
*vpp = vp;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 7:00 PM (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14948781
Default Alt Text
D23955.diff (672 B)
Attached To
Mode
D23955: nullfs: don't pre lock exclusive in nullfs_root
Attached
Detach File
Event Timeline
Log In to Comment