Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5153416ima; Tue, 5 Feb 2019 07:11:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IbrIrjRGceNyTHojQyhHnPPPkXVf30kHS1Xg7+999o+AvqDCwvZGCeBCwaC7c7A37dYtyxL X-Received: by 2002:a62:6f49:: with SMTP id k70mr5428862pfc.7.1549379496203; Tue, 05 Feb 2019 07:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549379496; cv=none; d=google.com; s=arc-20160816; b=K1CC4oN4pug/vbK+Zm+L5+VsV9zjOx3PrIruuOg5oPwEJaJDNT4MAK3Yu7/nErReWd IZf0KHL2v0peBYvtdvk+c4NAm/l5PC+Tq7BxvoquT9W+dHwrivVlJXnxgm8fZobGEP9y 2m17brlIbfthNYJLT8dp+fT2tDErjV26ZsZOeBZYXJSqdT3bjL/38ifypVu4IkYcp0EE i1g5UUSrUr7mJ635FoexXkHaOehiiEauTQYO3xxOPPNaGxWbM8gEA0gf6QmArWCpZRZq 93akvu1jfZjIfSH0LH5pPv0w9r4bIPK9TOGAn66SWdzfXp2XFqx3Aerxv1cZFUIYoC/S fTMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ZD4ZAv30hYZhAmNsHS/1QMz7/5esfvnYE02PmHFJfso=; b=xC2OAYbDy5ixw+xwaqVrg2xoiPv+nyzwc045EO0WvjtPEB1Wu/PdQ0AYQD3K7dQnma Je9ALpoNceO4d1gkeKjvKoQ9sRHeaLXXk1fzf8vWzB1ikNWVgLmGxwXXZnjjvxpacruq ZE6YrkGLb/z1RYqYbbqxJ2jRnPJRESn02lcsQaoU/hyOr1PAsINT8JWfjXWpriU981fZ wgbDfTrPy0c3fGiDGTLPz4lHmdNc5t1DZ6HZU9z0x4j1O11yrcYEN3mGTU/SYOsuBrH+ SwIerZjGzt2snpwXZ6n85CXjGP92IumWzBpfuJPuIxbQAIV9MsjL8JNeUvDD5Vr2Bg27 X7lw== 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 o19si3463399pfi.261.2019.02.05.07.11.18; Tue, 05 Feb 2019 07:11:36 -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 S1729586AbfBEPKu (ORCPT + 99 others); Tue, 5 Feb 2019 10:10:50 -0500 Received: from smtp.nue.novell.com ([195.135.221.5]:58909 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729184AbfBEPKu (ORCPT ); Tue, 5 Feb 2019 10:10:50 -0500 Received: from [10.160.4.48] (charybdis.suse.de [149.44.162.66]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Tue, 05 Feb 2019 16:10:48 +0100 Subject: Re: Question on handling managed IRQs when hotplugging CPUs To: Keith Busch , John Garry Cc: Hannes Reinecke , Thomas Gleixner , Christoph Hellwig , Marc Zyngier , "axboe@kernel.dk" , Peter Zijlstra , Michael Ellerman , Linuxarm , "linux-kernel@vger.kernel.org" , "linux-scsi@vger.kernel.org" , "linux-block@vger.kernel.org" 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> <42d149c5-0380-c357-8811-81015159ac04@huawei.com> <20190205145244.GB28023@localhost.localdomain> From: Hannes Reinecke Message-ID: <0de6dae8-1234-3e3f-d8f3-2d8de47b7f9e@suse.com> Date: Tue, 5 Feb 2019 16:10:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20190205145244.GB28023@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/5/19 3:52 PM, Keith Busch wrote: > On Tue, Feb 05, 2019 at 05:24:11AM -0800, John Garry wrote: >> On 04/02/2019 07:12, Hannes Reinecke wrote: >> >> Hi Hannes, >> >>> >>> So, as the user then has to wait for the system to declars 'ready for >>> CPU remove', why can't we just disable the SQ and wait for all I/O to >>> complete? >>> We can make it more fine-grained by just waiting on all outstanding I/O >>> on that SQ to complete, but waiting for all I/O should be good as an >>> initial try. >>> With that we wouldn't need to fiddle with driver internals, and could >>> make it pretty generic. >> >> I don't fully understand this idea - specifically, at which layer would >> we be waiting for all the IO to complete? > > Whichever layer dispatched the IO to a CPU specific context should > be the one to wait for its completion. That should be blk-mq for most > block drivers. > Indeed. But we don't provide any mechanisms for that ATM, right? Maybe this would be a topic fit for LSF/MM? Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.com +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)