diff options
author | Yuwei Guan <ssawgyw@gmail.com> | 2022-12-11 16:08:41 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-12-13 02:18:36 +0300 |
commit | 26a8057a1ada97b528b93fdf3ac4fd03170f1900 (patch) | |
tree | 577ce1a027d2031d6440f557042620454680a606 /kernel | |
parent | 7411143f2021530d7641fbb40daaada4ee63f7e6 (diff) | |
download | linux-26a8057a1ada97b528b93fdf3ac4fd03170f1900.tar.xz |
f2fs: reset wait_ms to default if any of the victims have been selected
In non-foreground gc mode, if no victim is selected, the gc process
will wait for no_gc_sleep_time before waking up again. In this
subsequent time, even though a victim will be selected, the gc process
still waits for no_gc_sleep_time before waking up. The configuration
of wait_ms is not reasonable.
After any of the victims have been selected, we need to reset wait_ms to
default sleep time from no_gc_sleep_time.
Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions