Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1626861pxb; Wed, 10 Feb 2021 12:46:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVZsSaFPeGuqQgSqWFf06muQ44S5XxGId4a1HzEChx28Ni8KzQoeBMbJv4oO7fufzdAxbQ X-Received: by 2002:a17:906:4eda:: with SMTP id i26mr4673303ejv.467.1612989960883; Wed, 10 Feb 2021 12:46:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612989960; cv=none; d=google.com; s=arc-20160816; b=FzQ+whH4pZcs9EBXZeZO0dsx65r3Jw7xtOj/oanzOEUINioI0R2VVGtzUqdKpiLlDX dtI31vU4p0FOIcGGcr4nA4plygtdAOeFCjtiSnkDbV6/rfcH2ffe3oVJem2b3w46aCPE o2OxZYHKUgIrNTzD02TL/w1Uxa80D+dTjmij/gpd9X+fBdiuthL02PBX6M2wMGjkgpeF tIWc4YcfcM7Qb9YJuAaEEC0D7UH35234vmrvryRToiVxE2neJPk/6heXZJOwUzIjI7Bv 8T7NMH/hwPedKsrZqVjqU7KhQ+jQ3lAZcDwOdayFJioC3mFcH6EUmcvXltxmG3U10KGC hBng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bFCBVLmx4m3P8OJ7FexI4xTU+D+dqeOPB5L3zdP1j98=; b=LjBtEy04UNFN4E6lRZh/26abKyGc6dwWjcaVtCjigoZ5WQvgbLqi+rqGF2HMcefqkx 5jti8HmsIm1iww+V3LoM9c3Fy6Xu6WI22Y2fAXbB/7wwP4bebE6oituYA34LwRoDaKOw cYcvFh9mD6lPJmZLNa2QZrzA05945jXwWAY6/+/4PdZ4PrDc01zHGsszTJnYqrtoO0GY CDZpfpcVT4VbPEc5zy4iE/9IOPIFazr2GwUUe/E2Ntf3g3S78L19Dx5tGe/6sp/IiIDz Uhtx4L17uIEomQDIl7jOXKvKkybckxHlLyVGBynAb0ICxBT+VM9KhhdtJPzu4HEvdr41 ltPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OlXMEGE3; 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 c5si2107246ejz.259.2021.02.10.12.45.36; Wed, 10 Feb 2021 12:46:00 -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=@linux-foundation.org header.s=google header.b=OlXMEGE3; 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 S233137AbhBJUof (ORCPT + 99 others); Wed, 10 Feb 2021 15:44:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232279AbhBJUoU (ORCPT ); Wed, 10 Feb 2021 15:44:20 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9639C06174A for ; Wed, 10 Feb 2021 12:43:39 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id a25so4710650ljn.0 for ; Wed, 10 Feb 2021 12:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bFCBVLmx4m3P8OJ7FexI4xTU+D+dqeOPB5L3zdP1j98=; b=OlXMEGE3+YXDW20u82up+ZZJxFuT5KQPVaOZp56fIviL/ca54YrjE5bQPiM0jLbtr5 JephDlBWc6ihBoJg5k8R1M7+hSbeoGkpREvy/8A8Bsg5/X4GhbjclPWfb060aUds7Xkf 2bFaMcZ2LOg9RoALDj7udW/xyJ4i9lrqIzZcg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bFCBVLmx4m3P8OJ7FexI4xTU+D+dqeOPB5L3zdP1j98=; b=C+phNIdDDA1upyksLrF8OEAstaIBxbGDBpdX91JnsJ4XXjLGRireOMrmrH0fiUZ5nk BeOBf54nxIwXN8J3toUiOwblRP+r2hrkEqpIh6s+rNBu1uQB+A9qOsDZZ/Ru8FY1LDM7 UfqM9Lwl3z924jr5oDDLQGvfHH0xfix6cY1S+2wY/OaOP08NrdVbsliqu4ZC2XvzjLL0 +IY7TaV/IFKIZI6l5uyRhZFuv7tZd2YRhburDDkhvawvhaGYWOXhPBc2dEHlQn5RTITw M1W5RwEvdW/Jok1gwlOi4hmYU3b+NOprvjjBLd989DcPxWDPT5WQYIXsc7qLKzQT77fS 0ODA== X-Gm-Message-State: AOAM532XrE5uSDMiyZTBfQOpBA/6hztz3zaxfkhuB9nao7IYgjliL/3S FMkYQMAB0c4agbxGftsPMjCpQlfbwurUjQ== X-Received: by 2002:a2e:9119:: with SMTP id m25mr3131874ljg.215.1612989817753; Wed, 10 Feb 2021 12:43:37 -0800 (PST) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id f20sm450455lfk.188.2021.02.10.12.43.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Feb 2021 12:43:36 -0800 (PST) Received: by mail-lf1-f51.google.com with SMTP id v5so4834840lft.13 for ; Wed, 10 Feb 2021 12:43:35 -0800 (PST) X-Received: by 2002:a05:6512:a8c:: with SMTP id m12mr2551518lfu.253.1612989815438; Wed, 10 Feb 2021 12:43:35 -0800 (PST) MIME-Version: 1.0 References: <591237.1612886997@warthog.procyon.org.uk> <1330473.1612974547@warthog.procyon.org.uk> <1330751.1612974783@warthog.procyon.org.uk> In-Reply-To: <1330751.1612974783@warthog.procyon.org.uk> From: Linus Torvalds Date: Wed, 10 Feb 2021 12:43:19 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] fscache: I/O API modernisation and netfs helper library To: David Howells Cc: Matthew Wilcox , Jeff Layton , David Wysochanski , Anna Schumaker , Trond Myklebust , Steve French , Dominique Martinet , Alexander Viro , ceph-devel@vger.kernel.org, linux-afs@lists.infradead.org, linux-cachefs@redhat.com, CIFS , linux-fsdevel , "open list:NFS, SUNRPC, AND..." , v9fs-developer@lists.sourceforge.net, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 8:33 AM David Howells wrote: > > Then I could follow it up with this patch here, moving towards dropping the > PG_fscache alias for the new API. So I don't mind the alias per se, but I did mind the odd mixing of names for the same thing. So I think your change to make it be named "wait_on_page_private_2()" fixed that mixing, but I also think that it's probably then a good idea to have aliases in place for filesystems that actually include the fscache.h header. Put another way: I think that it would be even better to simply just have a function like static inline void wait_on_page_fscache(struct page *page) { if (PagePrivate2(page)) wait_on_page_bit(page, PG_private_2); } and make that be *not* in , but simply be in under that big comment about how PG_private_2 is used for the fscache bit. You already have that comment, putting the above kind of helper function right there would very much explain why a "wait for fscache bit" function then uses the PagePrivate2 function to test the bit. Agreed? Alternatively, since that header file already has #define PageFsCache(page) PagePrivate2((page)) you could also just write the above as static inline void wait_on_page_fscache(struct page *page) { if (PageFsCache(page)) wait_on_page_bit(page, PG_fscache); } and now it is even more obvious. And there's no odd mixing of "fscache" and "private_2", it's all consistent. IOW, I'm not against "wait_on_page_fscache()" as a function, but I *am* against the odd _mixing_ of things without a big explanation, where the code itself looks very odd and questionable. And I think the "fscache" waiting functions should not be visible to any core VM or filesystem code - it should be limited explicitly to those filesystems that use fscache, and include that header file. Wouldn't that make sense? Also, honestly, I really *REALLY* want your commit messages to talk about who has been cc'd, who has been part of development, and point to the PUBLIC MAILING LISTS WHERE THAT DISCUSSION WAS TAKING PLACE, so that I can actually see that "yes, other people were involved" No, I don't require this in general, but exactly because of the history we have, I really really want to see that. I want to see a Link: https://lore.kernel.org/r/.... and the Cc's - or better yet, the Reviewed-by's etc - so that when I get a pull request, it really is very obvious to me when I look at it that others really have been involved. So if I continue to see just Signed-off-by: David Howells at the end of the commit messages, I will not pull. Yes, in this thread a couple of people have piped up and said that they were part of the discussion and that they are interested, but if I have to start asking around just to see that, then it's too little, too late. No more of this "it looks like David Howells did things in private". I want links I can follow to see the discussion, and I really want to see that others really have been involved. Ok? Linus