Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156860610
D3547.id8411.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
644 B
Referenced Files
None
Subscribers
None
D3547.id8411.diff
View Options
Index: sys/vm/swap_pager.c
===================================================================
--- sys/vm/swap_pager.c
+++ sys/vm/swap_pager.c
@@ -2580,6 +2580,9 @@
else
bio = g_alloc_bio();
if (bio == NULL) {
+ mtx_lock(&sw_dev_mtx);
+ cp->index--;
+ mtx_unlock(&sw_dev_mtx);
bp->b_error = ENOMEM;
bp->b_ioflags |= BIO_ERROR;
bufdone(bp);
@@ -2682,6 +2685,7 @@
cp = g_new_consumer(gp);
cp->index = 0; /* Number of active I/Os. */
cp->private = NULL; /* Orphanization flag */
+ cp->flags |= G_CF_DIRECT_SEND | G_CF_DIRECT_RECEIVE;
g_attach(cp, pp);
/*
* XXX: Everytime you think you can improve the margin for
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 17, 11:07 PM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33217140
Default Alt Text
D3547.id8411.diff (644 B)
Attached To
Mode
D3547: Mark swapgeom as direct dispatch safe and fix a reference leak
Attached
Detach File
Event Timeline
Log In to Comment