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

From: Yangtao Li
Date: Wed Nov 23 2022 - 11:06:47 EST


HI Chao,
>> set_freezable();
>>
>> do {
>
> if (!atomic_read(&dcc->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