Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1097150imm; Wed, 23 May 2018 10:12:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqUooItWZoX3c0IG+vFeG/75v3sxE2MGT+uJwMVxed0V5R87Qft0CW8nHywbvhEdCbrVhgF X-Received: by 2002:a17:902:9304:: with SMTP id bc4-v6mr3782872plb.189.1527095560773; Wed, 23 May 2018 10:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527095560; cv=none; d=google.com; s=arc-20160816; b=VDtN9HbOjnFLeqLlFEhKaVnvDJ2ih+djAAUSDfFBQFUI9pwUAvta1cWcCfNb+ktDIT XmYQdBYHnWB94oGOndaYs2Q6maJM90OU9go1V3MY83uTrAct7h8kR3YKlKFuGTxyl0y2 xxKiIjF+IwwseXs3B3fiUlNfEXDu84uE7uxgWSq6goTvUTY71s6e5sxCWhxr6ZoU/mKW kPu4CXBj5lW4hWrKC7uNZMPGBnhpt1IPJqyKV65dWSUhEAk9lcMLb9ifnhtYi8yJbFmK h1/shDRJ7RVhmlAe9c8CCaHHKRYIfbsCjaHPTtBEToXb6TZa9eS2VFa8Zadhyst4ymnU hDpw== 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=OzN6a3DkweSgfwbppktyMXQhsxjzouM2wZbcPpLYIyw=; b=EKsRb0PsIBdRxCHCN04RzXDc+pvqD+xB3QE5QR5sB47eZFNPkgGBZOtAtbodCtfbKy 7j4B1KMw6+ABfndvkAsZz7SaPW9NAgN2d7dv619kaexC2Zi8oin5frAzswJ73QrkWiOd DHwi2rcTjIPFC0hPx9O76iyWZLFv6b1chyNX1/I61CWPyPCnYVbLZ5mXfFew7nHfZKWl uC0pTp85hI+hdnQM38Js8wDwvBq5X9KkRKI46AC0N+v7QoMu85tIQn05vCmw/KigVPQS OhyRVluFhLP+nvjWWiZMQPir70HRJeQxCPYKaOeIr0HyM3Jr3ktFT10gEasHrw+t92M1 9YLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G9A1fLdz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o24-v6si14619562pgv.80.2018.05.23.10.12.25; Wed, 23 May 2018 10:12: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=pass header.i=@gmail.com header.s=20161025 header.b=G9A1fLdz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933760AbeEWRML (ORCPT + 99 others); Wed, 23 May 2018 13:12:11 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:42335 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932667AbeEWRMI (ORCPT ); Wed, 23 May 2018 13:12:08 -0400 Received: by mail-qk0-f194.google.com with SMTP id 196-v6so4681805qke.9; Wed, 23 May 2018 10:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OzN6a3DkweSgfwbppktyMXQhsxjzouM2wZbcPpLYIyw=; b=G9A1fLdzi9OWr/4wHdSyw566KHOChQJ1tk6r9arJyw/UFUoSRLYH65Oy+qhCK85tG+ GbtpYz5Ak4XVsNVBm9A/grtChJH1ZoU9YL0bQPqHxJcqXHRwkSSsegwSt7Fn57MVTmpr YDjxOas9LAonB/ouSNw1waow17JkVd3SliDKuh0ufqdGbx7G+RuEgFebmw/zAyFWvU7I Q32sKgF23ztzkhVbjB87l8tQ1lsLd4l+4IZ3Cyl8/jUnOUw693vXr/lgzSggtKoI0Avi eQKTqSCCZA3fOKdSMmxtfZzbQx/nDC8Nw7D75Wej9jAC6bbTs8c37ceQdJVfhc57DOAu bckg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OzN6a3DkweSgfwbppktyMXQhsxjzouM2wZbcPpLYIyw=; b=YaqkOxWvE2Ntu7tnc8HNh5ledoDnCvKverO/CqWpAKqlHUPieeXGdiitzuhWs0hpdZ 00HuL2a4VW75DNu4/zqv2VLA3AWsx7/TBdw/W51VxnDRIAgjPRjggGK3iJY2isaVF0JG gvBSedXNE6JG6MohSNCUfyct3eqRcISTV/vJwwQuYzFYHHTWqoszY7zJOlGNObl/j+Sq WUvpEcR0iRio0atMUceDOtBjuJMhy6zyOQZaCtDoInizK4Cxg31KG7u2ki1BsZvFFxFx 0YHTzP02THBPklHGWqhmYCT1XAysKGQKVpYKYNpAmpB9F72zsqK6zNRbwW7YQR5A3dcb gN/A== X-Gm-Message-State: ALKqPwethrlXjZbttfFqCdHgbI7NxSTMFbN4IsKHYQu/qLlO7dSaxXYf CG/9kuQDLdgysaMAENAaWA== X-Received: by 2002:a37:b002:: with SMTP id z2-v6mr3155744qke.222.1527095527583; Wed, 23 May 2018 10:12:07 -0700 (PDT) Received: from kmo-pixel (c-71-234-172-214.hsd1.vt.comcast.net. [71.234.172.214]) by smtp.gmail.com with ESMTPSA id k46-v6sm15539748qta.65.2018.05.23.10.12.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 10:12:06 -0700 (PDT) Date: Wed, 23 May 2018 13:12:04 -0400 From: Kent Overstreet To: Christoph Hellwig Cc: 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: <20180523171204.GA20772@kmo-pixel> 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> <20180523152239.GA2425@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180523152239.GA2425@infradead.org> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 08:22:39AM -0700, Christoph Hellwig wrote: > 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. Christoph, I'm really not someone you can accuse of avoiding my share of core work and refactoring and you know it. When are you going to get around to converting existing users of fs/direct-io.c to iomap so it can be deleted? The kernel is carrying around two dio implementations right now thanks to you. Not a good situation, is it?