Page MenuHomeFreeBSD

D61465.1794669143.diff
No OneTemporary

Authored By
Unknown
Size
553 B
Referenced Files
None
Subscribers
None

D61465.1794669143.diff

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

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)

Event Timeline