From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752986AbcCRMjx (ORCPT ); Fri, 18 Mar 2016 08:39:53 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:34903 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751838AbcCRMjt (ORCPT ); Fri, 18 Mar 2016 08:39:49 -0400 Message-ID: <1458304786.3600.4.camel@gmail.com> Subject: Re: 4.5.0+ panic when setup loop device From: Mike Galbraith To: Thomas Gleixner Cc: Peter Zijlstra , Xiong Zhou , "linux-kernel@vger.kernel.org" , Ingo Molnar , Borislav Petkov , Andreas Herrmann Date: Fri, 18 Mar 2016 13:39:46 +0100 In-Reply-To: References: <20160317095220.GO6344@twins.programming.kicks-ass.net> <1458274314.3859.25.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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