diff options
author | Michal Hocko <[email protected]> | 2019-02-20 22:19:54 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-02-21 09:01:00 -0800 |
commit | 6ea183d60c469560e7b08a83c9804299e84ec9eb (patch) | |
tree | df0df79b3330c9b0e556e075ec5b1a250e9b5fab /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 94b3334cbebea34d56a7e6321c6fe9d89b309a49 (diff) |
mm: handle lru_add_drain_all for UP properly
Since for_each_cpu(cpu, mask) added by commit 2d3854a37e8b767a
("cpumask: introduce new API, without changing anything") did not
evaluate the mask argument if NR_CPUS == 1 due to CONFIG_SMP=n,
lru_add_drain_all() is hitting WARN_ON() at __flush_work() added by
commit 4d43d395fed12463 ("workqueue: Try to catch flush_work() without
INIT_WORK().") by unconditionally calling flush_work() [1].
Workaround this issue by using CONFIG_SMP=n specific lru_add_drain_all
implementation. There is no real need to defer the implementation to
the workqueue as the draining is going to happen on the local cpu. So
alias lru_add_drain_all to lru_add_drain which does all the necessary
work.
[[email protected]: fix various build warnings]
[1] https://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Michal Hocko <[email protected]>
Reported-by: Guenter Roeck <[email protected]>
Debugged-by: Tetsuo Handa <[email protected]>
Cc: Tejun Heo <[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