Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp580077ybm; Wed, 27 May 2020 02:54:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG74TZyCMzc5n/Q31n4JMLL9TGxJKh3fcAqo/n0gfv3iode5R4mer8qQK0WzAH5f6JRwBr X-Received: by 2002:a17:906:3cd:: with SMTP id c13mr5288297eja.164.1590573274499; Wed, 27 May 2020 02:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590573274; cv=none; d=google.com; s=arc-20160816; b=VXq4NpuhjiuNfAMblStY/LBe9pJyBZGvsSIkw7I3a1i0m+HslCK/3uBHC3/UKE/192 PkdPXSAILKkZh+ywxoLHHvksw4ofQvikJyxmMx8OXzfoQe4NuZGfphwsS/CiQr30eufo sS5ofOdEXxJW7R2IhLo8DvVc2VmEU4l0wPiPthfqzEugrOOha0mnd8bRZiKkP05sKNsS LX8uJFpqDB05ciMSaTg/WFkDDvU+lVUOnZ5ng4XwjYgAFm2GVBcFVNxXYUNs5ecREB67 0q2v5X3sfrvUvi1CU43a9AUm4kt3sLW8o6XRFvmzNarrMKaOl2ULNP3Fsjpu+OBas6yb ydIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gHdtexCQGQRaatxx6IEb1gGC16jgjrLxhKEQOJ39uAQ=; b=w+wuBVCmjtQIfogu8DRWjAIe1HZA8odHTkopjgEqItfK6GtoA/iFkcJ8vQDHItKw6i oJasMNxGLNPRWm5xK1z8GiWSV72qJJoUfaXqIYyc9j4khkWzaLKDeRNlVlXq3Nmo4tH8 j4Zx4uM4YrjjA5QjHGftUNUNEmLOqsaFhNSaQRMGSAYpeWakZD6s7kpDSmupYqeF/hWQ pNpUkziEzEoAJR+jCBR80K28yU69aS8ZylxiV7zv4BpfRue5xFqZPdWeaJlymYZ35AFx laoKRcjPtTYHvebdy9IkgOFM8IZNj4vfKhdAyC9xQeMLZMPHrQvLj5/yWF14ZAx8jtST MU/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kvM2Iesn; 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 w9si1385516eds.173.2020.05.27.02.54.11; Wed, 27 May 2020 02:54:34 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kvM2Iesn; 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 S1728818AbgE0FJu (ORCPT + 99 others); Wed, 27 May 2020 01:09:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgE0FJt (ORCPT ); Wed, 27 May 2020 01:09:49 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 772FCC061A0F; Tue, 26 May 2020 22:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=gHdtexCQGQRaatxx6IEb1gGC16jgjrLxhKEQOJ39uAQ=; b=kvM2IesnbKbAxu4uRnJqOjHn1U OkIhbK/PCHpdiGv/c7IzpFly3ueziTlwNiOXh/Y+3tpsSWg3LMrjVQ+LMnF+zEUZNmqNw6Kl5OnQC AFM8ATOv9heC9Nl0TZzyzRn1Cnh4gYHIngAMbimQN3Y4I0cpXIb2U3+NLOERIWMSbne/KPx/P0eB1 uR6Bp59hrw2Fe+P1qymKKKRIW6o6dnreDzWkemnh2tSCnLr4wc7/wD9Y8oXYIwiecGkPqEyWeNGTw 3dV84ae9v7pa1kHq0cQMpqc716FshZpviUGRx8aObBmHV3UBnQO0sia9QJcT5SegOXvISsfpGPctQ ZVrM3Gvg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jdoJe-0000Ci-Ev; Wed, 27 May 2020 05:09:22 +0000 Date: Tue, 26 May 2020 22:09:22 -0700 From: Christoph Hellwig To: Dan Schatzberg Cc: Christoph Hellwig , Jens Axboe , Alexander Viro , Jan Kara , Amir Goldstein , Tejun Heo , Li Zefan , Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Hugh Dickins , Roman Gushchin , Shakeel Butt , Chris Down , Yang Shi , Ingo Molnar , "Peter Zijlstra (Intel)" , Mathieu Desnoyers , "Kirill A. Shutemov" , Andrea Arcangeli , Thomas Gleixner , "open list:BLOCK LAYER" , open list , "open list:FILESYSTEMS (VFS and infrastructure)" , "open list:CONTROL GROUP (CGROUP)" , "open list:CONTROL GROUP - MEMORY RESOURCE CONTROLLER (MEMCG)" Subject: Re: [PATCH v5 0/4] Charge loop device i/o to issuing cgroup Message-ID: <20200527050922.GB31860@infradead.org> References: <20200428161355.6377-1-schatzberg.dan@gmail.com> <20200512132521.GA28700@dschatzberg-fedora-PC0Y6AEN.dhcp.thefacebook.com> <20200512133545.GA26535@infradead.org> <20200526142803.GA1061@dschatzberg-fedora-PC0Y6AEN.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200526142803.GA1061@dschatzberg-fedora-PC0Y6AEN.dhcp.thefacebook.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 10:28:03AM -0400, Dan Schatzberg wrote: > Will do - I'll split out the lock-use refactor into a separate > patch. Do you have particular concerns about re-using the existing > spinlock? Its existing use is not contended so I didn't see any harm > in extending its use. I'll add this justification to the commit > message as well, but I'm tempted to leave the re-use as is instead of > creating a new lock. Please don't share a lock for entirely separate critical sections that are used from different contexts.