Page MenuHomeFreeBSD

Remove vm_page_remque().
ClosedPublic

Authored by markj on Sep 4 2018, 8:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 11 2026, 9:15 PM
Unknown Object (File)
May 11 2026, 8:26 PM
Unknown Object (File)
May 7 2026, 6:37 AM
Unknown Object (File)
Apr 26 2026, 4:57 AM
Unknown Object (File)
Apr 25 2026, 6:37 PM
Unknown Object (File)
Apr 23 2026, 10:06 PM
Unknown Object (File)
Apr 20 2026, 6:15 PM
Unknown Object (File)
Apr 18 2026, 2:44 PM
Subscribers

Details

Summary

See r338276. It is not sufficient to return immediately if
m->queue == PQ_NONE since another thread may be update the page's
queue state concurrently. vm_page_dequeue() now just returns if the
page is not enqueued (prior to r332974 it would panic in this case), so
simply replace all vm_page_remque() calls with vm_page_dequeue()
calls.

Test Plan

The problem was found while reading code. Peter is testing
this patch.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable