Re: [PATCH] f2fs: init discard policy after thread wakeup

From: Chao Yu
Date: Thu Nov 24 2022 - 09:20:59 EST


On 2022/11/18 11:46, Yangtao Li wrote:
Under the current logic, after the discard thread wakes up, it will not
run according to the expected policy, but will use the expected policy
before sleep. Move the strategy selection to after the thread wakes up,
so that the running state of the thread meets expectations.

Signed-off-by: Yangtao Li <frank.li@xxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,