Page MenuHomeFreeBSD

Remove vm_page_remque().
ClosedPublic

Authored by markj on Sep 4 2018, 8:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 11, 3:27 AM
Unknown Object (File)
Sat, Oct 10, 3:54 PM
Unknown Object (File)
Sat, Oct 10, 3:53 PM
Unknown Object (File)
Fri, Oct 9, 4:34 PM
Unknown Object (File)
Fri, Oct 9, 4:34 PM
Unknown Object (File)
Fri, Oct 9, 4:02 PM
Unknown Object (File)
Wed, Sep 30, 12:11 AM
Unknown Object (File)
Mon, Sep 21, 6:20 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