Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4168848pxb; Tue, 26 Jan 2021 14:22:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0ayNHr2YFLetNxfm+sJBZY23Fcm4VczuS3CJkVjVGvftAn4G1XNtR8uNM65j35BWYP3V9 X-Received: by 2002:a17:907:2851:: with SMTP id el17mr4527747ejc.405.1611699732482; Tue, 26 Jan 2021 14:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611699732; cv=none; d=google.com; s=arc-20160816; b=aqaaAByNtPm05G9EKAtVUcPvhQOIFcXnVZ7eFwcXRKP9mCOEym+eeiQzYB8dyX4t7l 3AErp6PusNZSDnBBXd91bfDOSoj9pWsSJqe8yXnEPZnyEAgsqg/Gi2oxCBCTwsyAwn3I QuCUasw8R1f/Lsty6GWAF7iJ0t6Gicj7V+z75iWACOYPMF/nQLk2CuYq3zuFiC0FpkvX asy0oMMMUDBCJRU8rShiB5T2S5OGQ3oTcPlJbvGQZ5MqNT/K+1+JNdu6M/d8m7dGggf5 UJKefpLxP7HRapURFOIoorAGD3DtVGHa92k7hVb7l2Emwq3gJZO0Z/bHI0Hqjn2fOZjp 08Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=fT0yLbgSHXoqxC+Ppvc+ZiBYpclK9xLccUp9T4OyAhY=; b=jEpnGJqrKuBt+l9RIwc4kHZFj7eE1ygEB2ZReWTPTZiZ/mcMp6evOgJMihBJCK93NG MfJhOvlOQ3qEuSzZYRZKOCqmLB5NdHJ3NKq7wQGAmdvhgT9YoRrIVDQCcyisUAkfv3MI VrBBFqj+XJeUnjIezvA2HKlRAzchR9paDIZV+Qlrs9fh1CCmZ7rsmpU1tK4atUurfb2O 4TY0LiAFHXcunMXvuMN9vBBnU59uW3sJdMF8nSA3+K99b3nh6lce/zOvscb4iyqzcZ7z WNV9ML66T0bIrO8CV/gwe0aW17kF+BDup0gJDidxa4Lm7xpmcjKSYRA8Wc51ZCmHeExe kQLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BemnhpDa; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si8098579edn.568.2021.01.26.14.21.47; Tue, 26 Jan 2021 14:22:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BemnhpDa; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732630AbhAZFYk (ORCPT + 99 others); Tue, 26 Jan 2021 00:24:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727270AbhAYKAN (ORCPT ); Mon, 25 Jan 2021 05:00:13 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 339FBC0617A9; Mon, 25 Jan 2021 00:33:26 -0800 (PST) Date: Mon, 25 Jan 2021 09:30:29 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1611563429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fT0yLbgSHXoqxC+Ppvc+ZiBYpclK9xLccUp9T4OyAhY=; b=BemnhpDaK7krGlakrswG4b/fJb0d7BgwDGu88JGO2M+isSnyVoDKEmoMM6aSV0B0LOABcF KizpKLGwv2O49+9JMQRYLbM6MSz9FbJZJkryfJewzhBzkp90pWv2MQPychF7LvtcQtHwSr Rf6lJA9Owe3+mlHcHYG2FGDTYe7QyRNcLGo8FJl+wzksispK8c8fQyTWHz7kpW1SKKHErD TXOVq23qAbY6yCP1ZIbIUQXMRk/V8yhVbWRLS/WBpx5V268wwsBNp3YsCEUphps6UV+Woo +5zWXHXKI/60yQc2Z2o+7UIvyU8P4klBbu2MWR3H5jEcXhaeOeQtc2CIROhNWA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1611563429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fT0yLbgSHXoqxC+Ppvc+ZiBYpclK9xLccUp9T4OyAhY=; b=S2syWgU3yZgLg/oaHo2t20FatHzVXsIl9VXp9sdRxxBc0ky1BpeVBdetISF1tcmB303Ecv R6P97UX0GXtoGCDw== From: Sebastian Andrzej Siewior To: Christoph Hellwig Cc: Hannes Reinecke , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Axboe , Thomas Gleixner , Peter Zijlstra , Ingo Molnar Subject: Re: [PATCH 2/3] blk-mq: Always complete remote completions requests in softirq Message-ID: <20210125083029.utnjqs2s3diqb5vx@linutronix.de> References: <20210123201027.3262800-1-bigeasy@linutronix.de> <20210123201027.3262800-3-bigeasy@linutronix.de> <30ce5ce2-8b9a-8873-4b37-c8720300942b@suse.de> <20210125082542.GC942655@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210125082542.GC942655@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-01-25 08:25:42 [+0000], Christoph Hellwig wrote: > On Mon, Jan 25, 2021 at 08:10:16AM +0100, Hannes Reinecke wrote: > > I don't get this. > > This code is about _avoiding_ having to raise a softirq if the driver > > exports more than one hardware queue. > > So where exactly does the remote CPU case come in here? > > __blk_mq_complete_request_remote is only called for the case where we > do not completelky locally. The case that "degrades" here is where > the device supports multiple queues, but less than the number of CPUs, > and we bounce the completion to another CPU. Does it really "degrade" or just use the softirq more often? The usual case is run the softirqs in irq_exit() which is just after IPI. Sebastian