Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp376027lqs; Thu, 13 Jun 2024 12:35:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQ53RNgkeH/zUNBKao6Qe7ylsJ2vfKTD3gRQNkFWAzAqIeBFfwYn86wvUyPEb1hYE2IhwnxZG+SCXh2BjkXeqDmaq+4OEIF4FiB3QUxg== X-Google-Smtp-Source: AGHT+IHZzuWVUiON1TX9SaMWbQys7/HKdaV4fa967EQv5Og9R4eRyEqhump+1zj2Wye5AzxXqhrp X-Received: by 2002:a05:620a:4150:b0:795:57e8:a327 with SMTP id af79cd13be357-798d26b1b82mr53231685a.75.1718307303749; Thu, 13 Jun 2024 12:35:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718307303; cv=pass; d=google.com; s=arc-20160816; b=ewZY2HdDyuUUWJleg4Sz/M8Sh4v2lqni7Yf1t/0oP5H4QYFiAwSzOPvKlpayFyMTlZ fdkN/Tnh05w20eow5AGiDJtmMB6CspmAhWXljWOne+osePCaGNHQenCtlBOhvceDXtH4 FMB4xxzXNkb/WnxUWEzzIVj4538ASY7Pj2Ipa07ptaQhUTnBSLV0fsAMdKv1W8KHf5Wr bHhx8M590WgVlBldoNNf51ogt1Rqenzg8OjVm+mprhXmziOTRGZZSZamAqfFfVXwK0Wk BSwnZDo6WfkRYOGs56RUSCb0TjVGpaLgsUT2X7Hyac9rcQJBaTIqxEkE0PrG5PG+/X/W wSzQ== 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=BZg0hrY0cl/sTszXcVnYwhyU3X3/PKHb3J+JILn3ksY=; fh=rzJ2OQaubQ28P1AaF0HayzRgmPpmHnOYh0QbyH+jKZg=; b=RLjJ4CrIs5TiOUUx6D+vxwxfo44YyvMuP1n6ZGhWUsl5xSh81s3eMnz4dWBVKdlWLt xRimE6Sr6m70z1ublDD6q0hL9l3jVmJ/hy0/UhzluOiOdq6xjTdhtkJrvP2OyKEHxNTd ONhL7c8dwTFy7O5a1LroN3Lmd4LP/aqYtFjsbUUSCUV1v87fpQsld4CwFU+ID39LxJ4q 6TaGuJX5Fmvk5OgPUnX13z1WU0in11tT1UVwpF5ab26CE5Jt/eNKw3MCx8Eelcc9NUm5 qybj2e4sfTTvpjLD1pKvnaBfzdAhYFboNur5U0J3zjQWXagADBlOaNJf36mWps6fdywB Eh0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IW0NQsVR; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-213932-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213932-linux.lists.archive=gmail.com@vger.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 af79cd13be357-798ac097d77si224415885a.777.2024.06.13.12.35.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:35:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213932-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=@linux-foundation.org header.s=google header.b=IW0NQsVR; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-213932-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213932-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 62CE21C21094 for ; Thu, 13 Jun 2024 19:35:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0CC2153565; Thu, 13 Jun 2024 19:34:21 +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="IW0NQsVR" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 4AB4B14A4EA for ; Thu, 13 Jun 2024 19:34:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718307261; cv=none; b=Ngi8k0W+CIngraMlUndydeFAjvaHR3yKYqSaytPipSJZo5dM9o58K+nZ4vM1agNoBfBYlyL7jj2tthVdVU4FH5uvqZN2jVYVo7FMOErgQ+qXQbgsaOQh3+Vmsc/3Q5UGEK3K6gGhIleqXSkkYMQGYoUz+6Akq0DtIQsX9rKZUzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718307261; c=relaxed/simple; bh=Lwk7smutNQj9Ma2l6ms8QeeuTagK4tf2FFnHtSPVUfU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HHEbEowI2RaHP8oLOhuqXQgY03cV7EdKXNXBJZixy+D/M/TBCi/HhAOhk1ZOSDDzrg6zGwYaFUFEQdcRXZSEjfp/8PuiEYXJaTQm0VonTQaEnNb/kkjBtFWd2QVzgI5jqebbtZTRJELywZHJWQEizeYlQWfqvQtCiY1UnNTJCl0= 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=IW0NQsVR; arc=none smtp.client-ip=209.85.208.46 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-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-57a30dbdb7fso2041051a12.3 for ; Thu, 13 Jun 2024 12:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1718307257; x=1718912057; 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=BZg0hrY0cl/sTszXcVnYwhyU3X3/PKHb3J+JILn3ksY=; b=IW0NQsVRX3Wf9NS48HWHJMiflIPZgwaLXPZm7Y8ivxdlBbR05Up0IQLkY7k58de6gJ faCCH/nASJG30RZcVoA+/4ErLh9YWlP4QCOQYpPqKGngTlKn00lBqRQcTseQI2OJeoQS Wanz8ICQM0pUsi/ikf+HpMgUVUa8P9LNjuXnA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718307257; x=1718912057; 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=BZg0hrY0cl/sTszXcVnYwhyU3X3/PKHb3J+JILn3ksY=; b=ZwmZFEGivwgimLjLmGDRonIvoX+SRHEfC/1eiTRs7BnWgG3r3Fk582UnJ0XsiCnokO ERWOLoxSoVx6iXsP5p4gvMRd3QHtBn0Bf//WViZLCSxk6jJhwKIH/fRbAE/qmV/lasCs BDMMEnW0o8YHHtLUvn2raO3A7NH/rnWL2rIDoCKRVWFs5bU2QlKq/nNgxHdbOQ3VCxwP gbwlw2f0siuT+5VcwNWwnZVSDpDTqJe4f3LiAwyX4UzDJh6JABKAzZJmzCgYFVYXIL36 McPnj+QKov/r9NBYPBrl/irQVJ3pEEbe0ScrmxfXmwUpT8m9fIl8krBKf4Y3IqBhhiwx D+oA== X-Forwarded-Encrypted: i=1; AJvYcCX8WHREnnucpeEvHtU54lPHfM+3y/c+k7/ukx6Ud3K3cjm2i0QJAtBWFvM3iaC9bg4FWRpgAOEbcqbPRMSgg7cx1dICWMm0DK63LxJW X-Gm-Message-State: AOJu0YwkjDjKC6Nm+HULZI11aSA7t4xKQpU5ivaIQEpYZNXqEKJvSqPJ PfQGYhmiYxPtw/utc774u9QFO4LldglF3vCEQD2doJKPrcsNYK6gEkPBhI+fVjXWdx4EgICN/wv o7ExpqA== X-Received: by 2002:a17:906:b7da:b0:a6f:4b5b:4ba7 with SMTP id a640c23a62f3a-a6f60de2641mr44359366b.67.1718307257410; Thu, 13 Jun 2024 12:34:17 -0700 (PDT) Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com. [209.85.218.51]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56f42ddfsm103139766b.171.2024.06.13.12.34.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jun 2024 12:34:16 -0700 (PDT) Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a62ef52e837so195614966b.3 for ; Thu, 13 Jun 2024 12:34:16 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCV1xlyHmOYhsbZFejKJGq+M67HoaUj4JCJWTgzmMvvrJHHeoB2o5PYN5mWSVMJA25jJebundGSW1PEaiA41FkLBiVAPVv/OvzGX66vi X-Received: by 2002:a17:906:f105:b0:a6f:586b:6c2 with SMTP id a640c23a62f3a-a6f60dc4faemr43433766b.60.1718307256510; Thu, 13 Jun 2024 12:34:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240613001215.648829-1-mjguzik@gmail.com> <20240613001215.648829-2-mjguzik@gmail.com> <5cixyyivolodhsru23y5gf5f6w6ov2zs5rbkxleljeu6qvc4gu@ivawdfkvus3p> <20240613-pumpen-durst-fdc20c301a08@brauner> In-Reply-To: From: Linus Torvalds Date: Thu, 13 Jun 2024 12:33:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] lockref: speculatively spin waiting for the lock to be released To: Mateusz Guzik Cc: Christian Brauner , viro@zeniv.linux.org.uk, jack@suse.cz, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 13 Jun 2024 at 11:56, Linus Torvalds wrote: > > I didn't *think* anything in the dentry struct should care about > debugging, but clearly that sequence number thing did. Looking at the 32-bit build, it looks like out current 'struct dentry' is 136 bytes in size, not 128. Looks like DNAME_INLINE_LEN should be reduced to 36 on 32-bit. And moving d_lockref to after d_fsdata works there too. Not that anybody really cares, but let's make sure it's actually properly done when this is changed. Christian? Linus