Implement vm_object_page_collect_flush() using iterators instead of vm_page_next() and vm_page_prev().
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/vm/vm_object.c | ||
---|---|---|
1163 | vm_pageout_flush() calls vm_pager_put_pages(), which implementations drop the object lock. Wouldn't this invalidate the iterator in the main loop in vm_object_page_clean(). In particular, the old 'goto rescan' condition is only sometimes to help. |