summaryrefslogtreecommitdiffstats
path: root/sound/core/pcm_local.h
diff options
context:
space:
mode:
authorSahitya Tummala <stummala@codeaurora.org>2021-04-06 14:39:16 +0530
committerJaegeuk Kim <jaegeuk@kernel.org>2021-04-06 07:18:31 -0700
commitc35b8d5e757e0fd0144890b7b536f7b756f3a648 (patch)
tree9b7a950e86129243c01993afc4b17aa6adf55e30 /sound/core/pcm_local.h
parent25ae837e61dee712b4b1df36602ebfe724b2a0b6 (diff)
downloadlinux-stable-c35b8d5e757e0fd0144890b7b536f7b756f3a648.tar.gz
linux-stable-c35b8d5e757e0fd0144890b7b536f7b756f3a648.tar.bz2
linux-stable-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 'sound/core/pcm_local.h')
0 files changed, 0 insertions, 0 deletions