Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133162843
D45288.id138931.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
727 B
Referenced Files
None
Subscribers
None
D45288.id138931.diff
View Options
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -1451,7 +1451,19 @@
pq = &vmd->vmd_pagequeues[PQ_INACTIVE];
vm_pagequeue_lock(pq);
vm_pageout_init_scan(&ss, pq, marker, NULL, pq->pq_cnt);
- while (page_shortage > 0 && (m = vm_pageout_next(&ss, true)) != NULL) {
+ while (page_shortage > 0) {
+ /*
+ * If we need to refill the scan batch queue, release any
+ * optimistically held object lock.
+ */
+ if (object != NULL && ss.bq.bq_cnt == 0) {
+ VM_OBJECT_WUNLOCK(object);
+ object = NULL;
+ }
+
+ m = vm_pageout_next(&ss, true);
+ if (m == NULL)
+ break;
KASSERT((m->flags & PG_MARKER) == 0,
("marker page %p was dequeued", m));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 24, 1:27 PM (14 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24129445
Default Alt Text
D45288.id138931.diff (727 B)
Attached To
Mode
D45288: vm_pageout_scan_inactive: take a lock break
Attached
Detach File
Event Timeline
Log In to Comment