Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> writes: > On 2022/05/01 17:53, Kalle Valo wrote: >> So now the thread is created every time the module loaded, even if >> there's no device available. > > Excuse me, but what thread? Sorry, s/thread/workqueue/. > alloc_workqueue() without WQ_MEM_RECLAIM flag does not create a > thread, and therefore consumes little resource where there's no device > available does not matter. It still allocating memory which is not needed. To me allocating resources during module_init is wrong. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches