Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) (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 76518547073; Sat, 26 Sep 2026 00:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790381455; cv=none; b=OBO8RmlTvcq11ptACE57S9hOLLapaQIoUegJ8djP/GbWkuBmyAC4tWZrUMR4rSBUQinRDiW7fFHnUSMBoqXyr12WtP0UBMg9MN/WK20gN30+vpBMprMJ0UXj92FDVHHo5E1JDXQzmcw3u0NmIi9ShOR1d1P9fIqA0EeZxIV1ZQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790381455; c=relaxed/simple; bh=vmcevMAsx/FiJfTdhkhmf63RRm1fIoIQVOcFnjch//4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YeQQtR6Xj+z37b137V5irNbDWCifmW5RRXLcwOsRqSy8g6GQfpNF9FK/PvGnL624d0jvsKU/OcUbUbwxep2GGmaV4SBM2uzD8qtxF8IQF5Ls3jb6GCokABl1ayvWSAuiV2YclkBBWlJIZ7DH8JJYCynMJexah8Jqx3dR0ONswcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ownmail.net; spf=pass smtp.mailfrom=ownmail.net; dkim=pass (2048-bit key) header.d=ownmail.net header.i=@ownmail.net header.b=ntEmLKk8; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=nYPCP9UD; arc=none smtp.client-ip=202.12.124.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ownmail.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ownmail.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ownmail.net header.i=@ownmail.net header.b="ntEmLKk8"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="nYPCP9UD" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 529521D0006B; Fri, 25 Sep 2026 20:10:52 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 25 Sep 2026 20:10:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ownmail.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:reply-to:subject :subject:to:to; s=fm1; t=1790381452; x=1790467852; bh=r6FFhFc3nI ElbVqBpOo/qsWHQ7d8PBRdoKoq/X9nKLk=; b=ntEmLKk82L59M4qdbOx66njzq1 e1ULX8Q6dfdMGu3W7QGeJlxeaIKtOMm2sbzZe2Mo2COMIhGUEv+c8XZF4Xpx5CYt 4m0bikBAbtSHitQRz+FoKbTTHvxizubusgyaCnKLjK4PFpr3mgP6A8oxo80bRjMt hLLd9pppLRj+mVFizTGGq5slUdeffrvQL0Ac1jQuUQRGlZDyeVrydkqjTWEEJTQU oQkp1rVSZr35Lyg7uuwIGlRO4jJ+4N7+d7fUmBUxRMZVxwF5Bnv5UtG6AAX3EvCZ GxhXczGvOsg9Up7lBXKnvxMiUIMrjRfm+et1PEBQVVeHc5ZYsZUkGTV19hMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1790381452; x=1790467852; bh=r6FFhFc3nIElbVqBpOo/qsWHQ7d8 PBRdoKoq/X9nKLk=; b=nYPCP9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Q X-ME-Proxy: Feedback-ID: i9d664b8f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Sep 2026 20:10:49 -0400 (EDT) From: NeilBrown To: Trond Myklebust , Anna Schumaker , Alexander Viro , Christian Brauner Cc: Jeff Layton , Jan Kara , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: [PATCH 0/9] nfs preparing for locking changes. Date: Sat, 26 Sep 2026 10:01:17 +1000 Message-ID: <20260926001011.401824-1-neilb@ownmail.net> X-Mailer: git-send-email 2.50.0.107.gf914562f5916.dirty Reply-To: NeilBrown Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I am working on changes to directory locking. The medium term goal is to lift d_alloc_parallel() locking above i_rwsem, so d_alloc_paralle() can be run unlocked, and consequently cannot be called when ->i_rwsem is held. The requires: 1/ the d_alloc_parallel() not be called while i_rwsem is held. NFS does this in a few places. New interfaces d_alloc_trylock() and d_duplicate() are now available and can be used instead. 2/ a dentry must not be d_drop()ed while an operation is ongoing, as an unlocked d_alloc_parallel() would then be able to create a new dentry with the same name. In particular d_rehash() must be phased out as it won't be safe. Various techiniques are used to avoid the need for d_drop(), particularly that d_splice_alias() is now able to splice a hashed alias. Further, the first two patches here fixes bugs that I found while developing and reviewing these changes. The patches depend on patches recently added to the vfs tree. I would prefer these land in that tree too with an Acked-by or similar from NFS maintainers. Thanks, NeilBrown [PATCH 1/9] nfs: fix open-blocking with d_fsdata [PATCH 2/9] nfs: fix nfs_call_unlink() [PATCH 3/9] nfs: remove d_drop()/d_alloc_parallel() from [PATCH 4/9] nfs: use d_splice_alias() in nfs_link() [PATCH 5/9] nfs: don't d_drop() before d_splice_alias() [PATCH 6/9] nfs: don't d_drop() before d_splice_alias() in [PATCH 7/9] nfs: Use d_alloc_trylock() in nfs_prime_dcache() [PATCH 8/9] nfs: use d_alloc_trylock() in silly-rename [PATCH 9/9] nfs: use d_duplicate()