Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4064989rdb; Thu, 28 Dec 2023 08:59:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6YFEGoCpGxZVfh/cM6J2Y6O3q53HpeoLpljYXa2V/WHUMBnh99ETR0WYdk3ntfSfhOEeR X-Received: by 2002:a81:7356:0:b0:5e8:8dfe:1606 with SMTP id o83-20020a817356000000b005e88dfe1606mr5224360ywc.82.1703782775566; Thu, 28 Dec 2023 08:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703782775; cv=none; d=google.com; s=arc-20160816; b=n8U2CKzbzxCcAve2YY3rX9RHD/5Sjw4D0qlOxirGx+oE25h3UILurMInzry6fPFKr7 nByuIMUO9JmkckKJQgi+qBP/rlZgybGqJAHxfIjlcQ2663dbGfYrFuNecZSurLphusK9 FAsuonQN+n8YNHbds2AZkZe/5Dk+8sZJFOdK84i1Xx2wDun75pVNrDeYuotCRTuBTPQL eHxIxoU3hPJJdoUePbCnguGCt8XO8yVGV3HWZ7hpgafRUWHnrnzXRrRwS746wipCeVqX dQSObNHHLB3OKBHSUN7gwNCvUdkTQFfUcswBClV+N+667pMHkRs3a95C85gh3OxuvgXb 031g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xLUJphbdSDlSH/ELyDWRlAkxZ9MemPxjaCkG2TgdsBU=; fh=ZPFqz4OlkKfmoqDuMVyRAJxznO/L91i02PyAQZxVfyk=; b=EDlSkbxK76e1Vco7lTLFfAJ/Lxkq23uibjmoIgfZEUqzjatDWFaj8wNMl+stq8XeQ5 IAFbTPLMurYkyokhVFcSykfqhi4KIn7nha4GWmqqr825nTVRaxJ7Yd7pUcEiiFeenKsj wQXH+9AU076si7leAnxJ7kxb4t6zAAIcr8e3dR/TBVJCVzsTD9w4mCyel5b+NSn/TFkS F/tcia8Lwb8TQ1KRZxGrONQDTWKUhfAao8IfLK0EjUpaThwawH+hBugrx9YqNYorGbWY /NG4B92B7IKx/aGgmdASKtmTE0Eg7LQ+08xzkZ63EdLDo/L6D+JwlUd2Am4hwgabu86M IMSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lWpAGoY8; spf=pass (google.com: domain of linux-nfs+bounces-829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f21-20020a05620a409500b007815e21d56csi4467036qko.340.2023.12.28.08.59.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 08:59:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lWpAGoY8; spf=pass (google.com: domain of linux-nfs+bounces-829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 51D0C1C20CFA for ; Thu, 28 Dec 2023 16:59:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C168E101C8; Thu, 28 Dec 2023 16:58:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lWpAGoY8" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82DC210A09; Thu, 28 Dec 2023 16:58:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9499CC433C9; Thu, 28 Dec 2023 16:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703782714; bh=LtB9LsZRFoK2mRick0kUYbdhu9aPS6cGfKbd+Bt8FtI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lWpAGoY88Go6sFhC5oHMizbI6XpsDbe3P9/irSiWfwoLQGwfrrdzSswLuoybnRUFT Y+XqOp9YWoQsYRrr6bvMkd8mxSERkT48kgdNRqDjCUUttR5Q3H3U0h6pPQweVEORBc I8WSnOqHV1rhNFbW5BbgKKPNaTH+Ac5AbrB8xN5rrfXe+tCgqQs5Rp1ezx8NBaLOU2 N34MiXPPv82Oc2WqM4yvpi5XSNSYcpVl0ehK6ySaDLDFWybSeNgF8bZuALCNNz0wJQ 6D8Um8C0blfpXdkHQK5vaSPd/HhcXAfTjTliP0Y6lp9eN5VXRU/sim+RtVXRhf+tQ6 UVcz4gfMLuMIw== Date: Thu, 28 Dec 2023 09:58:31 -0700 From: Nathan Chancellor To: Christian Brauner Cc: David Howells , Jeff Layton , Steve French , Matthew Wilcox , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Dominique Martinet , Eric Van Hensbergen , Ilya Dryomov , Christian Brauner , linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Kees Cook Subject: Re: [PATCH v5 15/40] netfs: Add support for DIO buffering Message-ID: <20231228165831.GA348702@dev-arch.thelio-3990X> References: <20231221132400.1601991-1-dhowells@redhat.com> <20231221132400.1601991-16-dhowells@redhat.com> <20231226165442.GA1202197@dev-arch.thelio-3990X> <20231228-wohlbefinden-museen-c5efad4e0d84@brauner> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231228-wohlbefinden-museen-c5efad4e0d84@brauner> On Thu, Dec 28, 2023 at 11:47:45AM +0100, Christian Brauner wrote: > > This will break the build with versions of clang that have support for > > counted_by (as it has been reverted in main but reapplication to main is > > being actively worked on) because while annotating pointers with this > > attribute is a goal of the counted_by attribute, it is not ready yet. > > Please consider removing this and adding a TODO to annotate it when > > support is available. > > It's really unpleasant that we keep getting new attributes that we > seemingly are encouraged to use and get sent patches for it. And then we > learn a little later that that stuff isn't ready yet. It's annoying. I I will assume the "get sent patches for it" is referring to the patches that Kees has been sending out to add this attribute to flexible array members. In his defense, that part of the attribute is very nearly ready (it is only the pointer annotations that are not ready, as in not worked on at all as far as I am aware). In fact, it was merged in clang's main branch for some time and the only reason that it was backed out was because adoption in the kernel had pointed out bugs in the original implementation that were harder to fix than initially thought; in other words, only because we started adding this attribute to the kernel were we able to realize that the initial implementation in clang needed to be improved, otherwise this feature may have shipped completely broken in clang 18.1.0 because it had not been stress tested yet. Now we can get it right. However, I do not necessarily disagree that it is annoying for maintainers who are not following this saga but are just receiving patches to add these annotatations because adds additional things to check for. Perhaps there should be some guidance added to the __counted_by definition or Documentation around how it is expected to be used so that there is clear advice for both developers and maintainers? > know it isn't your fault but it would be wise to be a little more > careful. IOW, unless both clang and gcc do support that thing > appropriately don't send patches to various subsystems for this. I will assume this was not necessarily directed at me because I have not sent any patches for __counted_by. > In any case, this is now fixed. I pulled an updated version from David. Thanks a lot. Cheers, Nathan