lkml.org 
[lkml]   [2016]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 4.5.0+ panic when setup loop device
From
Date
On Fri, 2016-03-18 at 12:55 +0100, Thomas Gleixner wrote:

> Does the patch below fix the wreckage?

Yup, all better.

> diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
> index 643dbdccf4bc..c5ac71276076 100644
> --- a/arch/x86/kernel/smpboot.c
> +++ b/arch/x86/kernel/smpboot.c
> @@ -319,7 +319,7 @@ static void __init smp_init_package_map(void)
> * might change in the future....
> */
> ncpus = boot_cpu_data.x86_max_cores * smp_num_siblings;
> - __max_logical_packages = DIV_ROUND_UP(nr_cpu_ids, ncpus);
> + __max_logical_packages = DIV_ROUND_UP(total_cpus, ncpus);
>
> /*
> * Possibly larger than what we need as the number of apic
> ids per

\
 
 \ /
  Last update: 2016-03-18 14:21    [W:0.073 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site