aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorMathieu Othacehe <[email protected]>2024-11-06 13:47:41 +0000
committerTheodore Ts'o <[email protected]>2024-11-13 17:56:48 +0000
commite06a8c24f6445c2f1b5255caa4f63b38e31c43fa (patch)
treeb851d6360453ab4ba7acd80f9153fddb14dc0000 /fs/ext4/fast_commit.c
parentext4: use struct_size() to improve ext4_htree_store_dirent() (diff)
downloadkernel-e06a8c24f6445c2f1b5255caa4f63b38e31c43fa.tar.gz
kernel-e06a8c24f6445c2f1b5255caa4f63b38e31c43fa.zip
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 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions