Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154366862
D20244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
996 B
Referenced Files
None
Subscribers
None
D20244.diff
View Options
Index: head/sys/fs/nullfs/null_subr.c
===================================================================
--- head/sys/fs/nullfs/null_subr.c
+++ head/sys/fs/nullfs/null_subr.c
@@ -222,9 +222,6 @@
* provide ready to use vnode.
*/
if (VOP_ISLOCKED(lowervp) != LK_EXCLUSIVE) {
- KASSERT((MOUNTTONULLMOUNT(mp)->nullm_flags & NULLM_CACHE) != 0,
- ("lowervp %p is not excl locked and cache is disabled",
- lowervp));
vn_lock(lowervp, LK_UPGRADE | LK_RETRY);
if ((lowervp->v_iflag & VI_DOOMED) != 0) {
vput(lowervp);
Index: head/sys/fs/nullfs/null_vnops.c
===================================================================
--- head/sys/fs/nullfs/null_vnops.c
+++ head/sys/fs/nullfs/null_vnops.c
@@ -893,11 +893,7 @@
return (ENOENT);
}
- /*
- * Exclusive lock is required by insmntque1 call in
- * null_nodeget()
- */
- error = vn_lock(ldvp, LK_EXCLUSIVE);
+ error = vn_lock(ldvp, LK_SHARED);
if (error != 0) {
vrele(ldvp);
vn_lock(vp, locked | LK_RETRY);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 3:39 AM (5 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32268245
Default Alt Text
D20244.diff (996 B)
Attached To
Mode
D20244: nullfs: lock the vnode with LK_SHARED in null_vptocnp
Attached
Detach File
Event Timeline
Log In to Comment