From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753085AbcHOWsF (ORCPT ); Mon, 15 Aug 2016 18:48:05 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:36192 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752576AbcHOWsE (ORCPT ); Mon, 15 Aug 2016 18:48:04 -0400 Date: Mon, 15 Aug 2016 18:48:01 -0400 From: Tejun Heo To: Heiko Carstens Cc: Ming Lei , Thomas Gleixner , Peter Zijlstra , LKML , Yasuaki Ishimatsu , Andrew Morton , Lai Jiangshan , Michael Holzheu , Martin Schwidefsky Subject: Re: [bisected] "sched: Allow per-cpu kernel threads to run on online && !active" causes warning Message-ID: <20160815224801.GA3672@mtj.duckdns.org> References: <20160727125412.GB3912@osiris> <20160730112552.GA3744@osiris> <20160815111908.GA3903@osiris> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160815111908.GA3903@osiris> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Heiko. On Mon, Aug 15, 2016 at 01:19:08PM +0200, Heiko Carstens wrote: > I can imagine several ways to fix this for s390, but before doing that I'm > wondering if the workqueue code is correct with > > a) assuming that the cpu_to_node() mapping is valid for all _possible_ cpus > that early This can be debatable and making it "first registration sticks" is likely easy enough. > and > > b) that the cpu_to_node() mapping does never change However, this part isn't just from workqueue. It just hits in a more obvious way. For example, memory allocation has the same problem and we would have to synchronize memory allocations against cpu <-> node mapping changing. It'd be silly to add the complexity and overhead of making the mapping dynamic when that there's nothing inherently dynamic about it. The surface area is pretty big here. I have no idea how s390 fakenuma works. Is that very difficult from x86's? IIRC, x86's fakenuma isn't all that dynamic. Thanks. -- tejun