Re: [PATCH] smpboot: add missing get_online_cpus() when register

2014-08-04 Thread Lai Jiangshan
On 08/02/2014 05:54 AM, David Rientjes wrote: > On Thu, 31 Jul 2014, Lai Jiangshan wrote: > >> If the smpboot_register_percpu_thread() is called after >> smpboot_create_threads() >> but before __cpu_up(), the smpboot thread of the online-ing CPU is not >> created, >> and it results a bug. So

Re: [PATCH] smpboot: add missing get_online_cpus() when register

2014-08-04 Thread Lai Jiangshan
On 08/02/2014 05:54 AM, David Rientjes wrote: On Thu, 31 Jul 2014, Lai Jiangshan wrote: If the smpboot_register_percpu_thread() is called after smpboot_create_threads() but before __cpu_up(), the smpboot thread of the online-ing CPU is not created, and it results a bug. So we use

Re: [PATCH] smpboot: add missing get_online_cpus() when register

2014-08-01 Thread David Rientjes
On Thu, 31 Jul 2014, Lai Jiangshan wrote: > If the smpboot_register_percpu_thread() is called after > smpboot_create_threads() > but before __cpu_up(), the smpboot thread of the online-ing CPU is not > created, > and it results a bug. So we use get_online_cpus() to prevent it. > Do you have

Re: [PATCH] smpboot: add missing get_online_cpus() when register

2014-08-01 Thread David Rientjes
On Thu, 31 Jul 2014, Lai Jiangshan wrote: If the smpboot_register_percpu_thread() is called after smpboot_create_threads() but before __cpu_up(), the smpboot thread of the online-ing CPU is not created, and it results a bug. So we use get_online_cpus() to prevent it. Do you have an

[PATCH] smpboot: add missing get_online_cpus() when register

2014-07-30 Thread Lai Jiangshan
If the smpboot_register_percpu_thread() is called after smpboot_create_threads() but before __cpu_up(), the smpboot thread of the online-ing CPU is not created, and it results a bug. So we use get_online_cpus() to prevent it. smpboot_unregister_percpu_thread() travels all possible CPU, it

[PATCH] smpboot: add missing get_online_cpus() when register

2014-07-30 Thread Lai Jiangshan
If the smpboot_register_percpu_thread() is called after smpboot_create_threads() but before __cpu_up(), the smpboot thread of the online-ing CPU is not created, and it results a bug. So we use get_online_cpus() to prevent it. smpboot_unregister_percpu_thread() travels all possible CPU, it