Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109728130
D21522.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
958 B
Referenced Files
None
Subscribers
None
D21522.diff
View Options
Index: head/sys/kern/vfs_subr.c
===================================================================
--- head/sys/kern/vfs_subr.c
+++ head/sys/kern/vfs_subr.c
@@ -1102,7 +1102,6 @@
("Removing vnode not on freelist"));
KASSERT((vp->v_iflag & VI_ACTIVE) == 0,
("Mangling active vnode"));
- TAILQ_REMOVE(&vnode_free_list, vp, v_actfreelist);
/*
* Don't recycle if our vnode is from different type
@@ -1114,7 +1113,6 @@
*/
if ((mnt_op != NULL && (mp = vp->v_mount) != NULL &&
mp->mnt_op != mnt_op) || !VI_TRYLOCK(vp)) {
- TAILQ_INSERT_TAIL(&vnode_free_list, vp, v_actfreelist);
continue;
}
VNASSERT((vp->v_iflag & VI_FREE) != 0 && vp->v_holdcnt == 0,
@@ -1129,11 +1127,8 @@
* activating.
*/
freevnodes--;
- vp->v_iflag &= ~VI_FREE;
- VNODE_REFCOUNT_FENCE_REL();
- refcount_acquire(&vp->v_holdcnt);
-
mtx_unlock(&vnode_free_list_mtx);
+ vholdl(vp);
VI_UNLOCK(vp);
vtryrecycle(vp);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 7:40 PM (20 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16562167
Default Alt Text
D21522.diff (958 B)
Attached To
Mode
D21522: vfs: fully hold vnodes in vnlru_free_locked
Attached
Detach File
Event Timeline
Log In to Comment