Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4177550pxb; Tue, 26 Jan 2021 14:40:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzo/GPX1tSpwYd/el6C2MY9i3mYjfp0HXLhCU8VVsj2b0wdfJO1lgoIuGmtqvmoZ4dsX0lw X-Received: by 2002:a17:906:24d1:: with SMTP id f17mr4699237ejb.21.1611700847781; Tue, 26 Jan 2021 14:40:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611700847; cv=none; d=google.com; s=arc-20160816; b=cUC7rqFCbfqa/IctqrfKG8CGM26AABnriLz3c/niKzDZD4ZJ2FINdMzYZ4WZj+EXMI Co+cW8WUhhDA3RPauW1yHFj3f405g31XsbcfJ0DUZNyNkmXG37SXdA0bnPEiB/b1mQa+ XJyh5ne1Wp7SUpn5EforZYvG3wigsFZzm7RUqmNdmLphX5TXyME5bYHkL3jxVR+kb5Fd qa9n4lLx0BzpangDyp6bvYWzVfYEnV5mK60xmwfcQwARR7QOjz/juxMqggFC/re3nkm/ B/ZRfZsAbHUGPtVfOXRnzcWRvmkuesmQrQgGSPvZuVEQXmtxqtT2J7DRWQ51AU0Gpngw N9qQ== 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:date:dkim-signature; bh=j//jmpTMMIX1qFdQL7zVyhGRSx0ek9fg+isx268q0ig=; b=CiWBWPAnrEaM0B+Tg92s9uEOCPJQf72HYt7/UlAyJov12KD6joUD69HSu6wpTYG4FX ZH2qhiDXEnq8QLG1+dPEQXaROS7GAcfPwMEArishtWhh5Ax+ZteuviMKg0IjplQU3Rbo B+Dwa65sxTSi/v8ZULhQZVmcMSgnTwd3+KG9amkUlDSLS5FerJa/Tp6gC/jl4Leg3ukn R0UMgXl/cqbFlMFPSYOxI7Nl3XspKzeELCw5aBv2Re+BFMqqYk5rGYe2hNQycMEgeaPm V5V4ZuPiyp30NMGnlD++zVm/MVi2iovGIVPRWLCJNe1ib28TNNpwQu5B2OImwThyHAce 8JQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=o6Qe0tEo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si29077ejc.207.2021.01.26.14.40.23; Tue, 26 Jan 2021 14:40:47 -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=@infradead.org header.s=casper.20170209 header.b=o6Qe0tEo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729860AbhAZE6I (ORCPT + 99 others); Mon, 25 Jan 2021 23:58:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbhAYJUO (ORCPT ); Mon, 25 Jan 2021 04:20:14 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D746C061794; Mon, 25 Jan 2021 00:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=j//jmpTMMIX1qFdQL7zVyhGRSx0ek9fg+isx268q0ig=; b=o6Qe0tEoHyLc+FhqyfnvQk7R3Z i7r6/HZ3NVNNSJkNE+XuQW/pekOqvJwaZskdSwSO5LoiWdvzvfnCXERRrWhE3T/MevKQZNz06AIe2 0w8pyIRx8rykCCTs9oQ1Cl9PC1RsY3tDVbwkDuedlbVLk4ROBY2UFfHIyNBvN88RfFvId868G2rgQ g/Xw1jenZkNOXyL3h2yDo96cITqlov8ODmqUUoVzIYJIil+Rsx8Zg6ltixJHFw1vHklVPNprdzclZ EkNy9Czomc/7zgtUfjEg0KMst4wGRbX3g6pN/UGKMRQZ6/7OXeARKC2/lr9Bb6BcO0AGuMqQphzSh kEeP0Y+A==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l3xBu-003xca-6D; Mon, 25 Jan 2021 08:25:46 +0000 Date: Mon, 25 Jan 2021 08:25:42 +0000 From: Christoph Hellwig To: Hannes Reinecke Cc: Sebastian Andrzej Siewior , 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: <20210125082542.GC942655@infradead.org> References: <20210123201027.3262800-1-bigeasy@linutronix.de> <20210123201027.3262800-3-bigeasy@linutronix.de> <30ce5ce2-8b9a-8873-4b37-c8720300942b@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30ce5ce2-8b9a-8873-4b37-c8720300942b@suse.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.