diff options
| author | Gregory Price <[email protected]> | 2024-02-02 12:02:38 -0500 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-02-22 10:24:47 -0800 |
| commit | 274519ed414bd2b9a77c5db78ee51778d37ceacf (patch) | |
| tree | ce7ca168ec3c9df5c2d44d78e955a726f599e571 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | fa3bea4e1f8202d787709b7e3654eb0a99aed758 (diff) | |
mm/mempolicy: protect task interleave functions with tsk->mems_allowed_seq
In the event of rebind, pol->nodemask can change at the same time as an
allocation occurs. We can detect this with tsk->mems_allowed_seq and
prevent a miscount or an allocation failure from occurring.
The same thing happens in the allocators to detect failure, but this can
prevent spurious failures in a much smaller critical section.
[[email protected]: weighted interleave checks wrong parameter]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Gregory Price <[email protected]>
Suggested-by: "Huang, Ying" <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Hasan Al Maruf <[email protected]>
Cc: Honggyu Kim <[email protected]>
Cc: Hyeongtak Ji <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Rakie Kim <[email protected]>
Cc: Ravi Jonnalagadda <[email protected]>
Cc: Srinivasulu Thanneeru <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions