aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorZhaoyang Huang <[email protected]>2022-01-25 14:56:58 +0800
committerPeter Zijlstra <[email protected]>2022-02-16 15:57:54 +0100
commite6df4ead85d9da1b07dd40bd4c6d2182f3e210c4 (patch)
tree1af29301a0595cc3d539c7927b31d41e6a5812ce /lib/test_fortify/write_overflow-strlcpy-src.c
parent5c7b1aaf139dab5072311853bacc40fc3457d1f9 (diff)
psi: fix possible trigger missing in the window
When a new threshold breaching stall happens after a psi event was generated and within the window duration, the new event is not generated because the events are rate-limited to one per window. If after that no new stall is recorded then the event will not be generated even after rate-limiting duration has passed. This is happening because with no new stall, window_update will not be called even though threshold was previously breached. To fix this, record threshold breaching occurrence and generate the event once window duration is passed. Suggested-by: Suren Baghdasaryan <[email protected]> Signed-off-by: Zhaoyang Huang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Johannes Weiner <[email protected]> Acked-by: Suren Baghdasaryan <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions