Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3236474pxb; Tue, 12 Jan 2021 09:30:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4SLgYUkfR/YZz1PWnhWFAXmd8NP5hp3Nv0s3RowHDZW+twq0sKxfw/wkXWGrbkSUjrqYu X-Received: by 2002:a17:906:3d62:: with SMTP id r2mr4091735ejf.295.1610472655576; Tue, 12 Jan 2021 09:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610472655; cv=none; d=google.com; s=arc-20160816; b=KVLAyVozocYUZqsP1AmaG+kg1C3BadtiEdFBgNHzlHha6wbt26KDhtEJSL4cPg9ytn Z6d0lVgh9MdAkr37A2mJEtf1SBmGTXlwliaqghjBrkrAUY0SLnapVGvbSfrYGcAC2ExD Ko3E5NzKx3LrUM4IVUVa2VCJgwLaopzBfTXhcphDUTyapbOSXtTfxiIwSy9ccp4dWM6a l4SfYVyWLVh82h2g4FaLk2w4qzHI2Vte8RXxK5x4QFtNEBKKDF3iSa6Kjdp2SOmXzKGX DJbGS5rE3doWFf4LzeYAWBGqd42HfHYzacFjOij9ZtlvcsoI9PRWVqhQwoZVjW/pUAtx 6hww== 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=OqpF9m8Ie7h14NS62Or0oMAWtodm7MvHcM9nCVl5hwY=; b=R+8h1nXOWuWeqG+Vx4QlGj0ZXuLvLBo8pYEu9B2TjOFXsc96gc9VjcYT0pPVQoAciM 3TJhuA3OMC/aMLkQlsDgV3fx2pCUg1wzvUapfCA+VVMX3oj5qzI55h4fhnJ2DwTNTgNH LkMDIaZWAN4onRtai7GsncsuBNrN8viSc8ZRtHMWB5c8HdSwLSio/dpVZSdRZnsQF+OV 4TSHQ3LjjqJf8VfDCzTiJ3wnwoXrjOe0nn4O9WUrzmQAVsaRmU782pvIV8BK123T/iI/ 5bo67nSolvRqF6GnUWXLR2cXXg7S8B24tgV8pr/Xa1lFxSuCije9HfgPmZXkRoGwYB6u wPWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GoLT4gtW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 v21si1584498edt.309.2021.01.12.09.30.30; Tue, 12 Jan 2021 09:30:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=GoLT4gtW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389601AbhALR3e (ORCPT + 99 others); Tue, 12 Jan 2021 12:29:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbhALR3d (ORCPT ); Tue, 12 Jan 2021 12:29:33 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EBE6C061794 for ; Tue, 12 Jan 2021 09:28:53 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id f11so3718361ljm.8 for ; Tue, 12 Jan 2021 09:28:53 -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=OqpF9m8Ie7h14NS62Or0oMAWtodm7MvHcM9nCVl5hwY=; b=GoLT4gtWkFQzxysE0FG1990pw92x+A+KYUUxNjKBXuEcavd4IzBOYB2y1Ih6O3FQQA u4qohDIAC5MRsuNuXKSw6NqhtOI03AoPDeIsiuvh8ZPfrLyWugFTKK7Q6Iqr3CtdG7N6 RF2iI2e3VCJkSIBRtrw2oE8igcSnQqwxsmmk8= 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=OqpF9m8Ie7h14NS62Or0oMAWtodm7MvHcM9nCVl5hwY=; b=La9+tCPHBw5Ru6qsmX+ipbJDISIbf670EYfBQtuT1PTiq6PK9OuqvS+a4by5Yy8esB kg1TD6k6kNiJlA+K/eGPlgh7Vfz/rphy7y0UK1IoJJyAEH9bSrMIe/D7M1f/i7KT22zY dIYEmG9GWLG349Dmc0ynoIb5Wnm/IInUiBHeMqOIQ8vBCtkHyyxfH/fynEHiMn29I+ne wxswgKOAruQCSZBwASZI9pJ+jGGyXzUK6y/WxhPPud7DoHiY2cy2tFB5g+oHdf4B6ipG l8TFA+5F2ibOAvtMx6ogxz/0xQuFLrgCbbaoSURKI9epvJLZNic4nP1L1Dxk+0to4W00 ePeQ== X-Gm-Message-State: AOAM530Wn0XU4ncxRIVc1X5igBDbJiwLUHx3yvre59IjCgXuhW4uGIDE tkgp3uDHyumXmYhyvEEnY3rUBnBoX4jlhQ== X-Received: by 2002:a2e:7307:: with SMTP id o7mr132622ljc.452.1610472530802; Tue, 12 Jan 2021 09:28:50 -0800 (PST) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id z2sm469626lfd.142.2021.01.12.09.28.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jan 2021 09:28:48 -0800 (PST) Received: by mail-lj1-f177.google.com with SMTP id n11so3742209lji.5 for ; Tue, 12 Jan 2021 09:28:48 -0800 (PST) X-Received: by 2002:a2e:9d89:: with SMTP id c9mr149709ljj.220.1610472527992; Tue, 12 Jan 2021 09:28:47 -0800 (PST) MIME-Version: 1.0 References: <20210106172033.GA2165@willie-the-truck> <20210106223223.GM1551@shell.armlinux.org.uk> <20210107111841.GN1551@shell.armlinux.org.uk> <20210107124506.GO1551@shell.armlinux.org.uk> <20210107133747.GP1551@shell.armlinux.org.uk> <20210108092655.GA4031@willie-the-truck> <20210112132049.GA26096@wunner.de> In-Reply-To: <20210112132049.GA26096@wunner.de> From: Linus Torvalds Date: Tue, 12 Jan 2021 09:28:32 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Aarch64 EXT4FS inode checksum failures - seems to be weak memory ordering issues To: Lukas Wunner Cc: Will Deacon , Peter Zijlstra , Arnd Bergmann , Russell King - ARM Linux admin , linux-toolchains@vger.kernel.org, Mark Rutland , "Theodore Ts'o" , "linux-kernel@vger.kernel.org" , Andreas Dilger , Ext4 Developers List , Linux ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jan 12, 2021 at 5:20 AM Lukas Wunner wrote: > > > Variable declarations in for-loops is the only one I can think of. I > > think that would clean up some code (and some macros), but might not > > be compelling on its own. > > Anonymous structs/unions. I used to have a use case for that in > struct efi_dev_path in include/linux/efi.h, but Ard Biesheuvel > refactored it in a gnu89-compatible way for v5.7 with db8952e7094f. We use anonymous structs/unions extensively and all over the place already. We've had a couple of special cases where some versions of gcc didn't do things right iirc (it was something like "nested anonymous struct" or similar), but those weren't actually about the feature itself. Was it perhaps the nested case you were thinking of? If so, I think that's not really a --std=gun11 thing, it's more of a "certain versions of gcc didn't do it at all". Linus