diff options
author | Hugh Dickins <[email protected]> | 2019-04-18 17:50:09 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-04-19 09:46:04 -0700 |
commit | 64165b1affc5bc16231ac971e66aae7d68d57f2c (patch) | |
tree | f076121056eafaf3790cbc23cc0be88b4bc85d79 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dd862deb151aad2548e72b077a82ad3aa91b715f (diff) |
mm: swapoff: take notice of completion sooner
The old try_to_unuse() implementation was driven by find_next_to_unuse(),
which terminated as soon as all the swap had been freed.
Add inuse_pages checks now (alongside signal_pending()) to stop scanning
mms and swap_map once finished.
The same ought to be done in shmem_unuse() too, but never was before,
and needs a different interface: so leave it as is for now.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: b56a2d8af914 ("mm: rid swapoff of quadratic complexity")
Signed-off-by: Hugh Dickins <[email protected]>
Cc: "Alex Xu (Hello71)" <[email protected]>
Cc: Huang Ying <[email protected]>
Cc: Kelley Nielsen <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Vineeth Pillai <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions