Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp475667pxk; Thu, 17 Sep 2020 08:00:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycTarT0+klnnuTeW+9kCI5Vod8Bw+rSaVKlerCcKGqn56NSLMHOuWgdqqEGs4Bp4nC9Iy6 X-Received: by 2002:aa7:de91:: with SMTP id j17mr33840002edv.85.1600354839177; Thu, 17 Sep 2020 08:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600354839; cv=none; d=google.com; s=arc-20160816; b=c6n5FD+TWEhs/qApCVLZL4fAlEQbrHMIKuUVCOXVSLDhev7GKj9VEgAa6lOeMLF7C6 mGRWhT93me7dkOwsL5CKV5L4fAl9srDQCsdhF9pdQpI1bGx2F9gMX1n/Ggb6F4A3vTAY zH0G2gVTLyqIR2e1eHPloUyw7FO9BVoXuhCx735YQZtHLSK/sC7eGSX8fX3YLhZ+pLT3 QsMb3QvqVKi5AH8sIorXPx7d+3OkPuKx5ouACKfPXwYLQEW7JpSIf8JFJBk6Bzlxn2k6 TZtPb8Lzqtfa82RwdhOMSeACIqic/lqol+VsXkh7OoNZL08GReQtMgeKxtQ7XV+yCctn fGGw== 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=e46ZxCmYJpeJz6E3Pq9hIabq8Ncj/V4WuCKu6cUX04k=; b=Af/r/fZ0h3Grw1teiiatQ2nbZnlrgSXDJCbd9Ua9K3iTAu7Za0SStdMpE4hmGf+r2s QEyjzwprOF46Nf/GjrPcuXSS4GH/KoNluswkg9dfG51JqFJAMbAj0Yc0QHPXwqKCZ7ap becW6u1a69d15TCH3Dn7mlkhJpk1WU01DMmGVKEuWSl732dwBlUl6nSRj7MsdYlleZVY lHC0aSy8ixngNjxLWffL/JMky6SMHQColRT5P9f+398xYZM1eElkRuUzgx6YMAMEWTQz gg3ZJVumgqTIK9RgKWejRGuJUfngCqQMLNl0QojUx8he62jCmtww7LydZ55JaTkr9xug e9NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GgmJhYxu; 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 bu5si75759ejb.750.2020.09.17.08.00.14; Thu, 17 Sep 2020 08:00:39 -0700 (PDT) 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=GgmJhYxu; 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 S1727813AbgIQO6d (ORCPT + 99 others); Thu, 17 Sep 2020 10:58:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727570AbgIQOtD (ORCPT ); Thu, 17 Sep 2020 10:49:03 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F73AC061351; Thu, 17 Sep 2020 07:47:13 -0700 (PDT) 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=e46ZxCmYJpeJz6E3Pq9hIabq8Ncj/V4WuCKu6cUX04k=; b=GgmJhYxu8pKJ+ZfpFhuO/KjJyt FmOkSlVuFX6W5Ke0+UtWhFqTTiIXtAiUEvVAWpz2n9qUDej5ce/P1keOJeOGFxleNC9illwlgVVZZ Tziy+vgLb9Ad+ITL5FA+fQXPPHX/PLCT6k9Z+wY4iDW4aWNHH5zEptwGHkknAhpkHD/oRBQMbGNhN 4UyBy6tUH1GvypyIWQdwGc2d0d8n0ZmbDOcwv3Qo2JWgFmCwEVxT9QQd/Tu1VMYK2ZQfIT6Iqcr09 3o7Y7VVEN4q74E53lqMa0sVs7MEkyCl55hYnMBUzdM9A1Ci7Dvfr6wtUkqGIyNhHcrylB/hwjDgY+ YUnPjkew==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIvBQ-00088r-K0; Thu, 17 Sep 2020 14:46:48 +0000 Date: Thu, 17 Sep 2020 15:46:48 +0100 From: Christoph Hellwig To: Boaz Harrosh Cc: Matthew Wilcox , Oleg Nesterov , Hou Tao , peterz@infradead.org, Ingo Molnar , Will Deacon , Dennis Zhou , Tejun Heo , Christoph Lameter , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jan Kara Subject: Re: [RFC PATCH] locking/percpu-rwsem: use this_cpu_{inc|dec}() for read_count Message-ID: <20200917144648.GA31086@infradead.org> References: <20200915140750.137881-1-houtao1@huawei.com> <20200915150610.GC2674@hirez.programming.kicks-ass.net> <20200915153113.GA6881@redhat.com> <20200915155150.GD2674@hirez.programming.kicks-ass.net> <20200915160344.GH35926@hirez.programming.kicks-ass.net> <20200917120132.GA5602@redhat.com> <20200917124838.GT5449@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Sep 17, 2020 at 04:46:38PM +0300, Boaz Harrosh wrote: > From my totally subjective experience on the filesystem side (user of > bio_endio) all HW block drivers I used including Nvme isci, sata... etc. end > up calling bio_endio in softirq. The big exception to that is the vdX > drivers under KVM. Which is very Ironic to me. NVMe normally calls it from hardirq or IPI context. The only time it would use softirq context is if you have a single I/O queue, which is very unusual.