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

2022-11-24 Thread Chao Yu
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

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

2022-11-23 Thread Yangtao Li via Linux-f2fs-devel
HI Chao, >> set_freezable(); >> >> do { > > if (!atomic_read(>discard_cmd_cnt)) > wait_ms = dpolicy.max_interval; dpolicy has not been initialized for the first time, and the value in the stack is unstable. Thx, Yangtao

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

2022-11-23 Thread Chao Yu
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