Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp896290rdb; Fri, 26 Jan 2024 14:32:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHheP2uLIVU9f4H0Oec9h+dhFDTJJD2CjBeXaHcDBtUZrixX2ZiQxVYfIDj4ZVvdq7tLSI1 X-Received: by 2002:a17:903:228d:b0:1d4:419c:3c86 with SMTP id b13-20020a170903228d00b001d4419c3c86mr646649plh.82.1706308367775; Fri, 26 Jan 2024 14:32:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706308367; cv=pass; d=google.com; s=arc-20160816; b=u8vqJi8Z+YAid0C56fvFlrYp60aNhOOrA2tJRKlORqY3L5GtH4bpQv1RO+5GNhUuln TvpLtjftqZ3SxnlVzG3Uq3PftTd4ztCy4Zdo0Ac4ainHiQowsGHBnp1eLM6Z/fXdR/C+ E7OcBT/YGIPRP7ta0HXUC7nDAHFsgUTSXnaU/CQ1RBDv8lkW/3ae0J9283VEc5FwFGgN zvOTwntYga/UQFKLUq85a9iZMsDXSQHysBwkbDP+fc+0e9vKQVgYJ5+5px4N9wvrom9l ShnZKiOiJvn+8grMH2TMZ+9ooZTFNjHSntdw27FsgNA3aTIUNVJFhifRGdX63XtymaBY 7FuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=T7RgCCRFdykhHgupnFCoE0SS5Tr46EimKI36cb0Txx4=; fh=CGEYBRzdeLqdQ7cu6ais8LsjhTrgSUYv+sswjiTqnZ0=; b=EixZ33dm0wZxO4IqG6V6d70QqawfWO2MhLQZbVpAiQ7njP4SUxv9/Ig2P82xuyz8fQ XozFiE4uTPHZEw2Qf5XLjXp/wf9fOwlUIHb9ywB+aZ6/x4WmGywWHYjTZhJunTbuwVNW qtaEE5HSyWGJpQaT7tWaxrHMPbU4D9RvYpr5DoiUF8fZntgEwVoE+4f5VyiOMy4V80nG BPsff3Dg63jDT1JUlaz9oNdTDuuGAnvfFLlwVf28s0PIy5CvJmiqo+pkRaUftYSSu9dv rlN0tyqx/yJOgSErsI2gxP/MznfnZEdxmxhAjiwj+61Gpn/HXbb4LZWpuJNWKv6jcLxf UkCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=G0b+K8dK; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-40755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40755-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a13-20020a170902eccd00b001d5dbd64d3asi1830120plh.334.2024.01.26.14.32.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 14:32:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=G0b+K8dK; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-40755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40755-linux.lists.archive=gmail.com@vger.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 2F044B21AA8 for ; Fri, 26 Jan 2024 22:26:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 553572556D; Fri, 26 Jan 2024 22:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="G0b+K8dK" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D129250F9 for ; Fri, 26 Jan 2024 22:26:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706307989; cv=none; b=c7RA/2E8InXVJCXtwE2PA4tq/3jNApCpDuQqj/2GxnS/UJvrV+ydTYUxRa72vQG2C++eFB9zTCqdUH/C6iSxcrkpAOzbCXQNYZdYZzDX8JvDfaDRfn3fT+kdrxFuzSMwNm1TncuRp8QScbgbNXoDanqGM3QX52ehU+JuRcGW04c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706307989; c=relaxed/simple; bh=ulYxyMID4hoDqqkZq7ZMib690LO/V3+HiOYKu4iA5EY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=A6U85P08jjo6n7eU8TF6E/iAmf4GG3Ai/N2TOCrEx44nJ9O9uIKubDAT4S2iVFQH8MTVHaAV0i+61I4b9cct+vllZo4kzie7o0ahDnhxdGQ8tzbt/Z3Vdcs4/3SfIYJOaR8iuYCwk0vyjLt9+TVrKQlGbSZkVK70mtlq4aIUook= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=G0b+K8dK; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a28fb463a28so78350366b.3 for ; Fri, 26 Jan 2024 14:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706307985; x=1706912785; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=T7RgCCRFdykhHgupnFCoE0SS5Tr46EimKI36cb0Txx4=; b=G0b+K8dKSaXhtj/LF1iMD6wZqs1UnX2DuWYXjXfIXukLmUdh9ieE9HvalEHFleujju hWEUmLs1vA9PrCLZLauOgOch+V9E4Shox7k9C9vcHDvmYJh6vIYYFcPBfE9MLH7hRhyg H0U6DbaBApv8Z9eONS/HV+1Qa6sUSQ6dbIJ9A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706307985; x=1706912785; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=T7RgCCRFdykhHgupnFCoE0SS5Tr46EimKI36cb0Txx4=; b=e8RzZvhpGxjIxrNLumyow0RtnQ685ZM+QFR+4uS2NeDl5aWH+0AcjK4IMVQO8ZXKAm 2sxV8QDPbuKU8qZ3Vkwwy/OPvukJ+YaXRkVSgU3nZFRlFa2e5aaCTYAGgcGx/umv2e8W fa2Cmhv5roVjdLuo4Oa5ci0rBl0R4DctFNzb2zgd+vHU+QsW/KJgPGyDsRsB/5+oyBMw BZX8YN++M9WqYlAv6czk2slIx7UG6aWheabw1xDbkXLWBEZQfUeSSOMLVmR6RReACsBD I9OzY38k4c/sWIOdEli++iiptLNWBjnv1jfJxLDuDaH2cZpiplkf5/bj1fEh1NIGJrwC 6/0Q== X-Gm-Message-State: AOJu0Yy14zcLFct59UfA/mZx8S0RZbAdUlQzka+AvvD7LO3jhsGyxakA gNrFw8bscCKVUUX5Ji4LvqzYQWHpHJj2bCVjjpNsSehYdzBvXovB59Xm8U7HCPLVXZo/eWOeqp2 j5zJe8Q== X-Received: by 2002:a17:906:d155:b0:a30:4035:4b0a with SMTP id br21-20020a170906d15500b00a3040354b0amr253317ejb.50.1706307985702; Fri, 26 Jan 2024 14:26:25 -0800 (PST) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id z20-20020a170906075400b00a32d1df9c29sm1072916ejb.64.2024.01.26.14.26.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 14:26:24 -0800 (PST) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-55817a12ad8so643540a12.2 for ; Fri, 26 Jan 2024 14:26:24 -0800 (PST) X-Received: by 2002:aa7:c64d:0:b0:55d:71d8:9dc1 with SMTP id z13-20020aa7c64d000000b0055d71d89dc1mr232273edr.38.1706307984490; Fri, 26 Jan 2024 14:26:24 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240126150209.367ff402@gandalf.local.home> <20240126162626.31d90da9@gandalf.local.home> <0C9AF227-60F1-4D9B-9099-1A86502359BA@goodmis.org> In-Reply-To: <0C9AF227-60F1-4D9B-9099-1A86502359BA@goodmis.org> From: Linus Torvalds Date: Fri, 26 Jan 2024 14:26:08 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] eventfs: Have inodes have unique inode numbers To: Steven Rostedt Cc: LKML , Linux Trace Devel , Masami Hiramatsu , Mathieu Desnoyers , Christian Brauner , Ajay Kaher , Geert Uytterhoeven , linux-fsdevel Content-Type: text/plain; charset="UTF-8" On Fri, 26 Jan 2024 at 14:09, Steven Rostedt wrote: > > I'm not at my computer, but when I tried deleting that, it caused issues with the lookup code. The VSF layer should be serializing all lookups of the same name. If it didn't, we'd have serious issues on other filesystems. So you should never get more than one concurrent lookup of one particular entry, and as long as the dentry exists, you should then not get a new one. It's one of the things that the VFS layer does to make things simple for the filesystem. But it's worth noting that that is about *one* entry. You can get concurrent lookups in the same directory for different names. Another thing that worries me is that odd locking that releases the lock in the middle. I don't understand why you release the tracefs_mutex() over create_file(), for example. There's a lot of "take, drop, re-take, re-drop" of that mutex that seems strange. Linus