diff options
author | 2021-04-06 14:39:16 +0530 | |
---|---|---|
committer | 2021-04-06 07:18:31 -0700 | |
commit | c35b8d5e757e0fd0144890b7b536f7b756f3a648 (patch) | |
tree | 9b7a950e86129243c01993afc4b17aa6adf55e30 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f2fs: fix to avoid accessing invalid fio in f2fs_allocate_data_block() (diff) | |
download | linux-rng-c35b8d5e757e0fd0144890b7b536f7b756f3a648.tar.xz linux-rng-c35b8d5e757e0fd0144890b7b536f7b756f3a648.zip |
f2fs: fix the periodic wakeups of discard thread
Fix the unnecessary periodic wakeups of discard thread that happens under
below two conditions -
1. When f2fs is heavily utilized over 80%, the current discard policy
sets the max sleep timeout of discard thread as 50ms
(DEF_MIN_DISCARD_ISSUE_TIME). But this is set even when there are
no pending discard commands to be issued.
2. In the issue_discard_thread() path when there are no pending discard
commands, it fails to reset the wait_ms to max timeout value.
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions