Hi, Tejun On Sat, Aug 23, 2025 at 1:56 AM Tejun Heo <tj@xxxxxxxxxx> wrote: > > Hello, > > On Fri, Aug 22, 2025 at 04:22:09PM +0800, Julian Sun wrote: > > +struct wb_wait_queue_head { > > + wait_queue_head_t waitq; > > + wb_wait_wakeup_func_t wb_wakeup_func; > > +}; > > wait_queue_head_t itself already allows overriding the wakeup function. > Please look for init_wait_func() usages in the tree. Hopefully, that should > contain the changes within memcg. Sorry for having misunderstood what you meant before. I’m afraid that init_wait_func() cannot work the same way. Because calling init_wait_func() presupposes that we are preparing to wait for an event(like wb_wait_completion()), but waiting for such an event might lead to a hung task. Please correct me if I'm wrong. > > Thanks. > > -- > tejun Thanks, -- Julian Sun <sunjunchao@xxxxxxxxxxxxx>