diff options
author | Mathieu Othacehe <[email protected]> | 2024-11-06 14:47:41 +0100 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2024-11-13 12:56:48 -0500 |
commit | e06a8c24f6445c2f1b5255caa4f63b38e31c43fa (patch) | |
tree | b851d6360453ab4ba7acd80f9153fddb14dc0000 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d5e9836e13a53ef36af702d87ab20d1a126b0fb8 (diff) |
ext4: prevent an infinite loop in the lazyinit thread
Use ktime_get_ns instead of ktime_get_real_ns when computing the lr_timeout
not to be affected by system time jumps.
Use a boolean instead of the MAX_JIFFY_OFFSET value to determine whether
the next_wakeup value has been set. Comparing elr->lr_next_sched to
MAX_JIFFY_OFFSET can cause the lazyinit thread to loop indefinitely.
Co-developed-by: Lukas Skupinski <[email protected]>
Signed-off-by: Lukas Skupinski <[email protected]>
Signed-off-by: Mathieu Othacehe <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions