Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146094627
D52608.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
423 B
Referenced Files
None
Subscribers
None
D52608.diff
View Options
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3713,11 +3713,12 @@
ASSERT_VOP_LOCKED(vp, __func__);
ASSERT_VI_UNLOCKED(vp, __func__);
- if (!refcount_release(&vp->v_usecount)) {
- VOP_UNLOCK(vp);
+ if (refcount_release_if_last(&vp->v_usecount)) {
+ vput_final(vp, VPUT);
return;
}
- vput_final(vp, VPUT);
+ VOP_UNLOCK(vp);
+ vrele(vp);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 28, 6:38 PM (42 m, 18 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29078919
Default Alt Text
D52608.diff (423 B)
Attached To
Mode
D52608: vnode: Rework vput() to avoid holding the vnode lock after decrementing
Attached
Detach File
Event Timeline
Log In to Comment