Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp965770ima; Fri, 1 Feb 2019 13:58:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN4HqVnfK1+XyYKMfMmU12yuo2h6T2tuJuA0ux8XFxtIponfDXsdmwBQ93yVCqF49eWeJxZU X-Received: by 2002:a17:902:5982:: with SMTP id p2mr41022412pli.39.1549058335370; Fri, 01 Feb 2019 13:58:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549058335; cv=none; d=google.com; s=arc-20160816; b=DhwnKRXd2IqoSVkkcG3UIsg/jkpuXK8blkOkz9E7mA0dn66JQ9ThgAdbm4Ib/PGqKS PWD9KAUmO1bstRMYWP3OA9d/QW996BKt9BD6QvcgjZWOWaSF7k0/BkVj2QQ2DfXGBRmx uMX1F+s8NBw0CNu4GVifgjMbz1eS/8DG1bKNYRKib/mBhcszjNEssQskUPYPZ+UVGWDf AkbiIK5QzaYb90cFGdBu174MYSSVyzFwYesB5hI1x2wTBs/5K929mhVtuLhoW4qOGXCk 6AN8wx2VOBj/4OI/NnDWY6gHRLB+4hnCdsAUdmy5bqGpsqpg462SyabW9mew2X2PfxjH AL7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=0ykzM+08yp+M1+XkS5ichvMogvQYVV6RmW71vi82Qxw=; b=dhlT6WWS0iPVygiiGJW16UjY2DEK8vCvm8rXKRl0HVlqUHIxYHvMiDAHF1gaQCPQRw 0lpyXQ1oxpFQeU6SsDd5rR90SiQ+WQ1ATGnw1ENL4OjjR0mnQoI+0P1SeTvYr6BycNnv 1eO8qiRwr8HBrJzfFFZkS53ni4tQ0wYZfyqn77olnma4X2ZhUafzj3IKuuSJ5l+UcMdk onTK84nss0OSDyX0IkIOJbPEhm4SQRXtKbQW4cKZdSMSpWa6OHOIqo8iCfbcBuIJBpg8 JReECSIpjtll5bYy08motwUNICKDhjIjyRPi/LdDQaFzMM6gyXwdst5AtK6t7iDEV/Ym j8+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 66si5118675plc.125.2019.02.01.13.58.40; Fri, 01 Feb 2019 13:58:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbfBAV6V (ORCPT + 99 others); Fri, 1 Feb 2019 16:58:21 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:52354 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbfBAV6V (ORCPT ); Fri, 1 Feb 2019 16:58:21 -0500 Received: from p5492e0d8.dip0.t-ipconnect.de ([84.146.224.216] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gpgoy-0007aK-1C; Fri, 01 Feb 2019 22:58:00 +0100 Date: Fri, 1 Feb 2019 22:57:59 +0100 (CET) From: Thomas Gleixner To: Hannes Reinecke cc: John Garry , Keith Busch , Christoph Hellwig , Marc Zyngier , "axboe@kernel.dk" , Peter Zijlstra , Michael Ellerman , Linuxarm , "linux-kernel@vger.kernel.org" , Hannes Reinecke , "linux-scsi@vger.kernel.org" , "linux-block@vger.kernel.org" Subject: Re: Question on handling managed IRQs when hotplugging CPUs In-Reply-To: <745609be-b215-dd2d-c31f-0bd84572f49f@suse.de> Message-ID: References: <20190129154433.GF15302@localhost.localdomain> <757902fc-a9ea-090b-7853-89944a0ce1b5@huawei.com> <20190129172059.GC17132@localhost.localdomain> <3fe63dab-0791-f476-69c4-9866b70e8520@huawei.com> <86d5028d-44ab-3696-f7fe-828d7655faa9@huawei.com> <745609be-b215-dd2d-c31f-0bd84572f49f@suse.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Feb 2019, Hannes Reinecke wrote: > Thing is, if we have _managed_ CPU hotplug (ie if the hardware provides some > means of quiescing the CPU before hotplug) then the whole thing is trivial; > disable SQ and wait for all outstanding commands to complete. > Then trivially all requests are completed and the issue is resolved. > Even with todays infrastructure. > > And I'm not sure if we can handle surprise CPU hotplug at all, given all the > possible race conditions. > But then I might be wrong. The kernel would completely fall apart when a CPU would vanish by surprise, i.e. uncontrolled by the kernel. Then the SCSI driver exploding would be the least of our problems. Thanks, tglx