Received: from fout-b5-smtp.messagingengine.com (fout-b5-smtp.messagingengine.com [202.12.124.148]) (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 A0980146A66 for ; Sat, 26 Sep 2026 03:01:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790391668; cv=none; b=nQwJ3IhhSVTtnQGIhEjUNlmI4ZeYt5rx3z2C6b9UpRvyB24YrEqOpsxhUKrdZZ9RPoQgnQGvOC3yS41x8a0tqJAia1LIX9uAnDyzMEwUlM1naVAkqpavYssT67I5BSncIJ+hpObLG4ePNdTncuhclSQ4s7Gij9USUJZtbcweLp4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790391668; c=relaxed/simple; bh=YbE0wLiEcFPSuejH3NUSEKzK8XmGOFx9OMwAw7onyR0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NlQvNkRdqhvGuCj8cE1EUTvPEMY8O71hIviDLMb97C/DyW55RW4lnBfC3r0M4mgx4Bse9Vr7lZfJPTSQbl1SZyvezkSsCr8aM9sCeS/b0Vck5oNdxj/Q27q7BLD0Pf8SphjLEPMLuDye9Cxidt80zPT68wmSmyugvcu0n5gkxBU= 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=GQg9oqCJ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=C8hmUbKi; arc=none smtp.client-ip=202.12.124.148 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="GQg9oqCJ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="C8hmUbKi" Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 809C21D000C9; Fri, 25 Sep 2026 23:01:05 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Fri, 25 Sep 2026 23:01:05 -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=1790391665; x=1790478065; bh=4xKh3xtbyc Pc/i+MRzyeV/sZDiv18YHVPGuDxDEyZDw=; b=GQg9oqCJousiCRVxqbuNTv1jou aU4yAOC+YEi77u2SGigvF/vasfMgcfTCwjYVg/sHYUTd6xzM17W0e4doUbBfoDjQ +f08wr8r7d7h87ghfR0I7vzz0aXcGJg6eSmF3H+ch5BMZnl1v5yLLVafoBI9YMl1 LAHIFz/p21fJTT01yZr5Oafu79dG6f9YPhVmjed6+GwAJO+/wzMlrdvzLfFr/EnO pycpDfFbdlP9rTkfLaqflqtPn3jHDdoD8lw5Vq3v6KwAnl+uYLQQv6fy7Pp1qq2w UK869H9t78grAsL39csmi7k+dkaCZZMcJNH0I1d8dzQrPsQa8LLNCNnXCWeQ== 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=1790391665; x=1790478065; bh=4xKh3xtbycPc/i+MRzyeV/sZDiv1 8YHVPGuDxDEyZDw=; b=C8hm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8f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Sep 2026 23:01:02 -0400 (EDT) From: NeilBrown To: David Howells , Marc Dionne , Alexander Viro , Christian Brauner Cc: Jeff Layton , Jan Kara , linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org Subject: [PATCH 0/9] afs: prepare for locking changes. Date: Sat, 26 Sep 2026 12:57:19 +1000 Message-ID: <20260926030052.467448-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. In one case we must drop and reclaim the lock and LOOKUP_SHARED helps with that. 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. This particularly affect the mechanism to block lookups/revalidates while an unlink/rename is happening. The mechanism is changed to use one similar to how NFS addresses this needed, though using the new LOOKUP_PRIVATE flag. 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 AFS maintainers. Thanks, NeilBrown [PATCH 1/5] afs: don't unhash/rehash dentries during unlink/rename [PATCH 2/5] afs: use d_splice_alias() in afs_vnode_new_inode() [PATCH 3/5] afs: use d_alloc_trylock in afs_sillyrename() [PATCH 4/5] afs: lookup_atsys to drop and reclaim lock. [PATCH 5/5] afs: use d_duplicate()