Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp768272lqm; Wed, 1 May 2024 15:33:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvUohTbpfeAc+XfTavGYcESH7/Sm/YzFP6ikGPcNb4T670SJM7wbGOoDXHhiKeblRHvQ8tUrbhZJ0qWr4D6QOBsrJTFnmDcHEi1MmqSA== X-Google-Smtp-Source: AGHT+IH1yKa06ZFH2DDOu/OSv5NyxmqCOX8ubvqA7wu9tCbgUFpwQiOFssPDm4/VIVSEudpMJToP X-Received: by 2002:a17:902:e849:b0:1e4:2859:e59b with SMTP id t9-20020a170902e84900b001e42859e59bmr1643282plg.28.1714602780398; Wed, 01 May 2024 15:33:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714602780; cv=pass; d=google.com; s=arc-20160816; b=eyez3DEC71zpkKjbV6/6/1SxoeFATYx7kZZnsO3+1jYu8LYO2oXgig6R1mrimyn6xW ut9pPWI/55mR0CeAbaASM0qSq+GXYPjykNHp2a7gha6ouIGHU6S4X7bJ5U/Q0k3cRcLU BSQrSMQ121gnEDJshIOL1tMdrW+a3IvqMBNejfsdZYIi1n1ODLBNhTU+Y1YEriHSI4fo v6rsDqGadfmzvf9gnry7JH8hDtlav5srGAzN3g0N0dSYteGyA8+N1o2FgdeypOXBAlpH eZK6RSrRw/xIEyhORvef1in/5ojS0OvJ28iWgLU7B87CmaixaiiuXxZWqfmr2U0hN+2D +BAA== ARC-Message-Signature: i=2; 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=6cgwF4ehoQFFltcO/FX4D6RcdLDI6qZ21gG10Vd6W9g=; fh=5OYaGM6GxhqoyvkOO+cntjLzCWdb6x9s0f2esLy/bDo=; b=KC6GIR7IuI31ifYmcp4StyrVGk24+xbD0lsOFnMMhzNE9C8gvY2rpZuS8xpbiyaFu3 rTt4n22T51KoSv9A4RmjicY6Yhddl5O9vKGyIDHGBsmCODETwWX9lPmMEiqO0OmWFMcp WdwVUJUDfIeSHcS/qyxor1hIQ6B+a4N4UW6j7Qm34sm6k5ZfGOEvWyXYlt7zUrQOmcX5 WtX9xb0Ux0E9G7s1x2wTjNyKkXudeLeWXeMvxYxzk2EMCrIyjUsJ+qqUYXE2q4MfbM85 PVKPBJwiS1JQvJZcObKFT1uLSxrcgNPRb6gTutr7a4mlvakQeC/AF2CwXJfdQxwweRiE U4Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hg48AugI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165790-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165790-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t8-20020a635348000000b005f42e089c2dsi20932058pgl.886.2024.05.01.15.32.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 15:33:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165790-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hg48AugI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165790-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165790-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AE909B22BED for ; Wed, 1 May 2024 22:32:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00C104F897; Wed, 1 May 2024 22:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hg48AugI" 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 27C051E481 for ; Wed, 1 May 2024 22:32:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714602755; cv=none; b=CgnZ/Y71HvDXNYR9plIh7UKldPNBLoTEBPyhM3t3ycIuFa1dDwxKSEWWgGRUMwNrshSHhEqx/8EP9BHZbfAqzn3YBdQd/XHG6Hp+tt/L8WgRedkSqWOxESqDHg4XP+yXo83lTV8t+UJAZhUY++LlW71OfwO7Op5alTkVdTFw1gs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714602755; c=relaxed/simple; bh=2eREyX5dnodlvhycApy74OcpOFee785YKRKbVEzpQ+8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e2+/y1CRVUOehGplReVWK7jkSsbEDW7x8ajDfKxUv08cjTehWtjXxA0rv8cIiMFbnUCxLOVh9MyjWXYlVI2jA8xEZouvWju5S2Kg4wdSGRYb/XDwelAL6piGTUilyPhRZ85Gijh8tA0YRBuVCl+nofjOfkBy865H+TfMMK0O/AM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hg48AugI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E48BFC072AA; Wed, 1 May 2024 22:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714602755; bh=2eREyX5dnodlvhycApy74OcpOFee785YKRKbVEzpQ+8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=hg48AugIuJ/JXYNVkTjIohdJPJSvTOYk+E12XqAeWbCdmUW7ZE0Y9HT9EI+jX+Wit voC0zz+THoKfHfj39mbNjEgCTEdn1OxMcRRLgpV0aXzgN85YIX1OEBQC5EhEwicJ1O 0QZzTPaR7s9QOdD5/0DrCjnDfccSHkbBpr8sBjM2ppmobDNyzvX6+QKBbwPky2eMU4 fbfI5wb5u5+Un0QuuEnXoOW8K2PcWaXTYKk88qnXHwgCIkHzaSr2o7D+gfkp3ubRsq NmWHXBT8AKo0EClW4vrGQMfMZW22QsXjRR5GB8al0u48NKkc/pouAAwnDaaNn1G3Ne r4ulvKU5lNe+w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 8F484CE1073; Wed, 1 May 2024 15:32:34 -0700 (PDT) Date: Wed, 1 May 2024 15:32:34 -0700 From: "Paul E. McKenney" To: Linus Torvalds Cc: Marco Elver , Tetsuo Handa , Greg Kroah-Hartman , Dmitry Vyukov , syzbot , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, Nathan Chancellor , Arnd Bergmann , Al Viro , Jiri Slaby Subject: Re: [PATCH v3] tty: tty_io: remove hung_up_tty_fops Message-ID: Reply-To: paulmck@kernel.org References: <892324fc-9b75-4e8a-b3b6-cf3c5b4c3506@paulmck-laptop> <1c886023-ae61-46ba-bb3c-b460c30de937@paulmck-laptop> Precedence: bulk X-Mailing-List: linux-kernel@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: <1c886023-ae61-46ba-bb3c-b460c30de937@paulmck-laptop> On Wed, May 01, 2024 at 02:49:17PM -0700, Paul E. McKenney wrote: > On Wed, May 01, 2024 at 02:20:35PM -0700, Linus Torvalds wrote: > > On Wed, 1 May 2024 at 14:06, Linus Torvalds > > wrote: [ . . . ] > > I'd love to see an extension where "const volatile" basically means > > exactly that: the volatile tells the compiler that it can't > > rematerialize by doing the load multiple times, but the "const" would > > say that if the compiler sees two or more accesses, it can still CSE > > them. Except that "const volatile" already means "you cannot write to it, and reads will not be fused". :-/ > No promises, other than that if we don't ask, they won't say "yes". > > Let me see what can be done. From a semantics viewpoint __atomic_load_n(&x, __ATOMIC_RELAXED) would work for loading from x. The compilers that I tried currently do not fuse loads, but they are allowed to do so. Or is there something I am missing that would make this not work? Aside from compilers not yet optimizing this case. Thanx, Paul