Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177540730
D61465.1794669143.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
553 B
Referenced Files
None
Subscribers
None
D61465.1794669143.diff
View Options
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -3276,13 +3276,14 @@
sw->sw_id = NULL;
mtx_unlock(&sw_dev_mtx);
- /*
- * swapgeom_close() may be called from the biodone context,
- * where we cannot perform topology changes. Delegate the
- * work to the events thread.
- */
if (cp != NULL)
g_waitfor_event(swapgeom_close_ev, cp, M_WAITOK, NULL);
+
+ /*
+ * Release the reference added by kern_swapon when resolving the
+ * vnode.
+ */
+ vrele(sw->sw_vp);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 3:12 PM (1 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41720488
Default Alt Text
D61465.1794669143.diff (553 B)
Attached To
Mode
D61465: swapoff: release vnode held since swapon
Attached
Detach File
Event Timeline