Re: do_boot_cpu can deadlock?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Friday, October 24, 2008 - 3:51 am

On 10/24, Gautham R Shenoy wrote:

virtualization/KVM is a black magic to me ;) I don't know how/if it is
possible to add CPU at runtime.

Anyway, booting with maxcpus=1 allows us to bring up another CPU later,
and idle_thread_array[cpu] == NULL in that case, yes?

Perhaps smp_prepare_cpus() can do fork_idle() for_each_possible_cpu() ?
Or we can change do_boot_cpu() to use kthread_run() to create the idle
thread.

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/7] work_on_cpu: helper for doing task on a CPU., Rusty Russell, (Wed Dec 31, 5:00 pm)
Re: [PATCH 2.6.19] mmc: Add support for SDHC cards, Pierre Ossman, (Mon Jan 1, 10:49 am)
Re: [PATCH 1/7] work_on_cpu: helper for doing task on a CPU., Gautham R Shenoy, (Thu Oct 23, 12:22 am)
Re: [PATCH 1/7] work_on_cpu: helper for doing task on a CPU., Gautham R Shenoy, (Thu Oct 23, 7:36 am)
do_boot_cpu can deadlock?, Oleg Nesterov, (Thu Oct 23, 10:02 am)
Re: do_boot_cpu can deadlock?, Gautham R Shenoy, (Thu Oct 23, 11:21 am)
Re: do_boot_cpu can deadlock?, Cyrill Gorcunov, (Thu Oct 23, 11:49 am)
Re: [PATCH 1/7] work_on_cpu: helper for doing task on a CPU., Gautham R Shenoy, (Fri Oct 24, 12:21 am)
Re: do_boot_cpu can deadlock?, Oleg Nesterov, (Fri Oct 24, 2:33 am)
Re: do_boot_cpu can deadlock?, Gautham R Shenoy, (Fri Oct 24, 2:53 am)
Re: do_boot_cpu can deadlock?, Oleg Nesterov, (Fri Oct 24, 3:51 am)
Re: [PATCH 1/7] work_on_cpu: helper for doing task on a CPU., Gautham R Shenoy, (Fri Oct 24, 4:40 am)
Re: [PATCH 1/7] work_on_cpu: helper for doing task on a CPU., Gautham R Shenoy, (Fri Oct 24, 6:41 am)