aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMinchan Kim <[email protected]>2022-03-22 14:39:34 -0700
committerLinus Torvalds <[email protected]>2022-03-22 15:57:01 -0700
commitc0226eb8bde854e016a594a16f5c0d98aca426fa (patch)
tree47171e4a456ae9bf87f3c1036181527e85d68751 /tools/perf/scripts/python/event_analyzing_sample.py
parent854d8e36168d79ad09a831d60bd4d835ad33e188 (diff)
mm: fs: fix lru_cache_disabled race in bh_lru
Check lru_cache_disabled under bh_lru_lock. Otherwise, it could introduce race below and it fails to migrate pages containing buffer_head. CPU 0 CPU 1 bh_lru_install lru_cache_disable lru_cache_disabled = false atomic_inc(&lru_disable_count); invalidate_bh_lrus_cpu of CPU 0 bh_lru_lock __invalidate_bh_lrus bh_lru_unlock bh_lru_lock install the bh bh_lru_unlock WHen this race happens a CMA allocation fails, which is critical for the workload which depends on CMA. Link: https://lkml.kernel.org/r/[email protected] Fixes: 8cc621d2f45d ("mm: fs: invalidate BH LRU during page migration") Signed-off-by: Minchan Kim <[email protected]> Cc: Chris Goldsworthy <[email protected]> Cc: Marcelo Tosatti <[email protected]> Cc: John Dias <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions