diff options
| author | David Rientjes <[email protected]> | 2014-08-06 16:07:31 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-08-06 18:01:21 -0700 |
| commit | 9ef0a0ffa28edbf5c7cfa6be73b4ecb9896a3875 (patch) | |
| tree | 6c0d71402e6c354b97eb04f4f62f00cee138ccb6 /tools/perf/scripts/python | |
| parent | 14a4e2141e24304fff2c697be6382ffb83888185 (diff) | |
mm, writeback: prevent race when calculating dirty limits
Setting vm_dirty_bytes and dirty_background_bytes is not protected by
any serialization.
Therefore, it's possible for either variable to change value after the
test in global_dirty_limits() to determine whether available_memory
needs to be initialized or not.
Always ensure that available_memory is properly initialized.
Signed-off-by: David Rientjes <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Rik van Riel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions