Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1498317

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

From Balbir Singh <bsingharora@gmail.com>
Newsgroups linux.kernel
Subject Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)
Date 2016-10-10 15:30 +0200
Message-ID <sqIOu-1Mr-31@gated-at.bofh.it> (permalink)
References (1 earlier) <shKFQ-2IM-33@gated-at.bofh.it> <sirB7-5py-13@gated-at.bofh.it> <sqGMF-zG-9@gated-at.bofh.it> <sqGMF-zG-7@gated-at.bofh.it> <sqIlx-1ni-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 10/10/16 23:53, Tejun Heo wrote:
> On Mon, Oct 10, 2016 at 10:17:16PM +1100, Balbir Singh wrote:
>> rest_init()
>> {
>> 	...
>> 	kernel_thread(kernel_init, NULL, CLONE_FS);
>> 	numa_default_policy();
>> 	pid = kernel_thread(kthreadd, NULL, CLONE_FS | CLONE_FILES);
>> 	rcu_read_lock();
>> 	kthreadd_task = find_task_by_pid_ns(pid, &init_pid_ns);
>> 	...
>>
>> }
>>
>> create_worker() needs kthreadd, it wakes up kthreadd in kthread_create_on_node,
>> workqueue_init() is called from kernel_init() , but kthreadd is created after
>> the call to kernel_init(), so its touch and go
> 
> But the first thing kernel_init_freeable() does is
> wait_for_completion(&kthreadd_done).
> 

Yes, Of course, looking at the stack trace again, it was not the wake_up itself,
but the absence of cfs_rq of p->se that caused the issue. Will try and chase it
down. Quick look shows cgroup_init() has occurred before workqueue_init(), so
ideally p->se.cfs_rq should be allocated.

Sorry for the noise,

Balbir

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue  available early during boot) Balbir Singh <bsingharora@gmail.com> - 2016-10-10 13:20 +0200
  Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue  available early during boot) Tejun Heo <tj@kernel.org> - 2016-10-10 15:00 +0200
    Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue  available early during boot) Balbir Singh <bsingharora@gmail.com> - 2016-10-10 15:30 +0200

csiph-web