Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030329AbcCQL5d (ORCPT ); Thu, 17 Mar 2016 07:57:33 -0400 Received: from mail.skyhub.de ([78.46.96.112]:49492 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547AbcCQL5b (ORCPT ); Thu, 17 Mar 2016 07:57:31 -0400 Date: Thu, 17 Mar 2016 12:57:04 +0100 From: Borislav Petkov To: Peter Zijlstra Cc: Thomas Gleixner , Xiong Zhou , "linux-kernel@vger.kernel.org" , Ingo Molnar , Andreas Herrmann , Jens Axboe Subject: Re: 4.5.0+ panic when setup loop device Message-ID: <20160317115704.GD28772@pd.tnic> References: <20160317095220.GO6344@twins.programming.kicks-ass.net> <20160317102633.GR6344@twins.programming.kicks-ass.net> <20160317115120.GT6344@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160317115120.GT6344@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 586 Lines: 24 On Thu, Mar 17, 2016 at 12:51:20PM +0100, Peter Zijlstra wrote: > On Thu, Mar 17, 2016 at 12:39:46PM +0100, Thomas Gleixner wrote: > > But we have to clarify and document whether holes in cpu_possible_mask are not > > allowed at all or if code like the above is simply broken. > > So the general rule is that cpumasks can have holes, and exempting one > just muddles the water. > > Therefore I'd call the code just plain broken. I'll say. Can't the code simply do: if (!cpu_possible(i)) continue; ? -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.