diff options
| author | Thomas Gleixner <[email protected]> | 2023-05-25 14:57:05 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-06-09 16:25:41 -0700 |
| commit | a09fad96ffb1d0da007283727235a03b813f989b (patch) | |
| tree | 58c8bd33ae572dd83a2eb4e723b2be781504f0df /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | ca5e46c3400badc418a8fbcaeba711ad60ff4e1b (diff) | |
mm/vmalloc: prevent flushing dirty space over and over
vmap blocks which have active mappings cannot be purged. Allocations
which have been freed are accounted for in vmap_block::dirty_min/max, so
that they can be detected in _vm_unmap_aliases() as potentially stale
TLBs.
If there are several invocations of _vm_unmap_aliases() then each of them
will flush the dirty range. That's pointless and just increases the
probability of full TLB flushes.
Avoid that by resetting the flush range after accounting for it. That's
safe versus other invocations of _vm_unmap_aliases() because this is all
serialized with vmap_purge_lock.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Baoquan He <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Lorenzo Stoakes <[email protected]>
Cc: Uladzislau Rezki (Sony) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions