]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm: rework swap_pager_status to execute in constant time
authorMateusz Guzik <mjg@FreeBSD.org>
Tue, 9 Jun 2020 14:16:18 +0000 (14:16 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Tue, 9 Jun 2020 14:16:18 +0000 (14:16 +0000)
commit7ce3a31286088439cb854eea8225d41361322806
tree3113c524b1495ce6d39799b6cc97e46b9e466352
parent4707401c7552129f41882659c52a9c1c0f2fbc77
vm: rework swap_pager_status to execute in constant time

The lock-protected iteration is trivially avoidable.

This removes a serialisation point from Linux binaries (which end up calling
here from the sysinfo syscall).
sys/vm/swap_pager.c