Page MenuHomeFreeBSD

Avoid needless TLB invalidations in pmap_remove_pages().
ClosedPublic

Authored by markj on Dec 14 2018, 8:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 11, 2:18 AM
Unknown Object (File)
Fri, Apr 10, 2:45 PM
Unknown Object (File)
Fri, Apr 10, 8:46 AM
Unknown Object (File)
Wed, Apr 8, 12:15 PM
Unknown Object (File)
Thu, Mar 26, 7:01 AM
Unknown Object (File)
Sun, Mar 22, 6:36 AM
Unknown Object (File)
Sat, Mar 21, 2:43 AM
Unknown Object (File)
Tue, Mar 17, 5:08 AM
Subscribers

Details

Summary

pmap_remove_pages() is called during process termination, when it is
guaranteed that no other CPU may access the mappings being torn down.
In particular, it unnecessary to invalidate each mapping individually
since we do a pmap_invalidate_all() at the end of the function.

Also don't call pmap_invalidate_all() while holding a PV list lock, the
global pvh lock is sufficient.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21575
Build 20879: arc lint + arc unit