]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/debug.c
mm: migrate: prevent racy access to tlb_flush_pending
[karo-tx-linux.git] / mm / debug.c
index db1cd26d8752022b7f8b576cdff78f5412209d39..d70103bb4731167da1d32b08aade6257522b405f 100644 (file)
@@ -159,7 +159,7 @@ void dump_mm(const struct mm_struct *mm)
                mm->numa_next_scan, mm->numa_scan_offset, mm->numa_scan_seq,
 #endif
 #if defined(CONFIG_NUMA_BALANCING) || defined(CONFIG_COMPACTION)
-               mm->tlb_flush_pending,
+               atomic_read(&mm->tlb_flush_pending),
 #endif
                mm->def_flags, &mm->def_flags
        );