]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix reference counting in pmap_ts_referenced() on RISC-V.
authorMark Johnston <markj@FreeBSD.org>
Mon, 15 Jul 2019 15:43:15 +0000 (15:43 +0000)
committerMark Johnston <markj@FreeBSD.org>
Mon, 15 Jul 2019 15:43:15 +0000 (15:43 +0000)
commit24074d28ec8fa43f1664c48bc7ae2f06f8c1d302
treef58863447069166c9f8df8b921ae0c0e6a27ee5b
parente52acf6a462ec187292fe8e8e8dc55af18ebb619
Fix reference counting in pmap_ts_referenced() on RISC-V.

pmap_ts_referenced() does not necessarily clear the access bit from
all accessed mappings of a given page.  Thus, if a scan of the mappings
needs to be restarted, we should be careful to avoid double-counting
accessed mappings whose access bits were not cleared in a previous
attempt.

Reported by: alc
Reviewed by: alc
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20926
sys/riscv/riscv/pmap.c