Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp978367imm; Wed, 23 May 2018 08:24:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpVXeGS0TVB7Mixi+/S5+pEPgJUg+wBfxwuTLiZxGq8nm1gM6+4LwzZuSmjy+DACPL2oVE6 X-Received: by 2002:a17:902:43a4:: with SMTP id j33-v6mr3494512pld.118.1527089080784; Wed, 23 May 2018 08:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527089080; cv=none; d=google.com; s=arc-20160816; b=EozW1jpSGv/uQzf7K1GE1t7I+sef3lgaoEVLva7Q6rgUjnRd3A1VngIKcbJPSwuLPv u2sUXEwwFip5HERgj1r6odHDPkexL/HLqUqdxiP5yDwlZIqdCf2b1DEAcRtCj48YY2ha iDGvatvhwBDTmaYY43fNCUMhU6MdY1xMHdeDTcpkg5wdgkNHQWxgBRYPh5nkymTEMUti 3wUjHsN7Dk/jNjxWW6v6TSMFE8BjV6J7EiH/m7gTVTr4s+rm5Br5pylCztBU1gD47BY+ wrNXgqjg5bKC7fjwOKcnDQAnl2XMq+jRlZOsWLEnYYzKJAJwxNVbj5ChHFgkpe4zGLSu S1wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ga5HnqbscMpwFoFf1nNImKXv7xo7vctepdi1PCu6xAc=; b=HKxTw9oBvsreFwd4Nayanl8jKc+2C1g0ZTDOZ3KwJasZnX2CT/O60lGlOyX7DVQGro Q5DEZB5T3V5c0UJF9m6bF076fJki23SjAhPy27jeAoB6KV9+djZyTH3nMxLoROCpA60O Ew2/UdKlAbcDptD9JsbavEXy+xxpbjD8aBki1oVg1iNlXOmOxwHvHzzvthuRpPTundxi c186Suy6Nb1WgCkqUzB6z9RMx+3gBehs+bxdjTN3bl8kmGOtver1+CjcxizgXGeSdTYI EDT1Zdnq/hXSyMhe4LXG3NhtOOud3pNdfB1qfzJrCTReaRkqg3+BHujpp95W/dEkXDTD TgRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iPGV/T/K; 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 y34-v6si19334908plb.317.2018.05.23.08.24.23; Wed, 23 May 2018 08:24:40 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iPGV/T/K; 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 S933507AbeEWPWq (ORCPT + 99 others); Wed, 23 May 2018 11:22:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48054 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933282AbeEWPWm (ORCPT ); Wed, 23 May 2018 11:22:42 -0400 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ga5HnqbscMpwFoFf1nNImKXv7xo7vctepdi1PCu6xAc=; b=iPGV/T/KZRa7PRftiWQA/n7fK TXR2acCJ4j19eMRUwNygMN58nvJMQVUAh5jQ3bFk4X6hmoEDx23f1iqeBfWfmJt7dDtpjRE0yk1vN TdqIjtRScL2SmrmAqpfFywgotwIOV4HEqLvEtaE2SJbdyae+Bw6Jza3QbGtixs5Agg49deFMDlkzE DnbAjmlu8oIO7bJTIJbmxSNIBPFv25yVz6Jcyed21Yk6IHnc9nGjnKitI2xhbS89l6qQSWqS3cvUG p9tgWja3FVEx8jX8V2CpiN+kBRVirjOHYTLK/yVRnv0mwOJWhPKqadY4zpRfGsZCJEVi25GPHRVB2 EdomhUv3A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLVb6-0001yl-2P; Wed, 23 May 2018 15:22:40 +0000 Date: Wed, 23 May 2018 08:22:39 -0700 From: Christoph Hellwig To: Kent Overstreet Cc: Christoph Hellwig , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Andrew Morton , Dave Chinner , darrick.wong@oracle.com, tytso@mit.edu, linux-btrfs@vger.kernel.org, clm@fb.com, jbacik@fb.com, viro@zeniv.linux.org.uk, peterz@infradead.org Subject: Re: [PATCH 01/10] mm: pagecache add lock Message-ID: <20180523152239.GA2425@infradead.org> References: <20180518074918.13816-1-kent.overstreet@gmail.com> <20180518074918.13816-3-kent.overstreet@gmail.com> <20180518131305.GA6361@bombadil.infradead.org> <20180518155330.GA16931@infradead.org> <20180520224524.GC11495@kmo-pixel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180520224524.GC11495@kmo-pixel> User-Agent: Mutt/1.9.2 (2017-12-15) 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 Sun, May 20, 2018 at 06:45:24PM -0400, Kent Overstreet wrote: > > > > Honestly I think this probably should be in the core. But IFF we move > > it to the core the existing users of per-fs locks need to be moved > > over first. E.g. XFS as the very first one, and at least ext4 and f2fs > > that copied the approach, and probably more if you audit deep enough. > > I'm not going to go and redo locking in XFS and ext4 as a prerequisite to > merging bcachefs. Sorry, but that's a bit crazy. It isn't crazy at all. In general we expect people to do their fair share of core work to get their pet feature in. How much is acceptable is a difficult question and not black and white. But if you want to grow a critical core structure you better take a stab at converting existing users. Without that the tradeoff of growing that core structure is simply not given. Or to put it in words for this exact feature: unless your new field is also used by mainstream file systems it is not going to be added.