From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.155 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795988000; b=koWWVbc9OHi3Ydz5H1OnNWoZF7N6S4zf0ZqiUjRg9MDWWf0lhq0RynkLrByE0JOelxg8 G05M0vlUp4Ohmp26MZQWoW1T1mU1nVAQjM7EcQ4VAHP2dApnOgbNPHr4+IJnbNFRWS7mH dD6c/soC/Zqbi2+tMNY6cLZov8mOql1b/rO0CYVawJjGKd4o0PO3410i/pi0DKV2VsvMe RI4p2V5Cq1JIW7SLr00eVeZTXt09K0EKl8NpSYjkddQZgLHcR6n+bVhmoLYaauX462ac6 8742ZaTQU6KdcTvTmQITH7IOuQJy/UDDuCtLLVrBNZAWxYtTsu9eApmGFHa580nfZhQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795988000; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:Reply-To: MIME-Version:Content-Transfer-Encoding; bh=VjHMIfI53uzAgIXaARXry7nuWx4yT+jLVI2Vy/w/QBk=; b=A7DxThsKC1SG6CBmIKA2d2c6J1G7Zsvjp9uFk4/woJiXL4Ni+Zmg/FTxoZT73mJDiPBZ uiT3IDsc7PdA7du4LGmq9srDJ1RFIdS2o1D1hxIoIIKEjgbJJho4t/ch/oj/uukW1hrBg 0LPT7O8X0tyEoTTLiqgLgQoL0o+gM9anj3sgnRhEA/McHrRIUhtwF3qGRGRuu4ZNVoBXb +OAPls7eok77OxKVegkx/qjaM5Tb7DeN59dJ43wiY3yqAq0qoxHxlz4IqVsMiQ9P9f1b7 shnSw62Oonysd1qtQ2QbZHyqNRfOe8L9VVb7kwaIAq3meHaiWOej5WjRsLF6Re7195w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=ownmail.net; spf=pass smtp.mailfrom=ownmail.net; dkim=pass header.d=ownmail.net header.i=@ownmail.net header.a=rsa-sha256 header.s=fm3 header.b=AclwH0XS; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=htss3fku; arc=none smtp.remote-ip=202.12.124.155 Received: from fhigh-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DA11606A31C for ; Sun, 29 Nov 2026 21:33:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5DA11606A31C 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, unprotected) header.d=ownmail.net header.i=@ownmail.net header.a=rsa-sha256 header.s=fm3 header.b=AclwH0XS; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=htss3fku Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id A16627A0321 for ; Sun, 29 Nov 2026 16:33:14 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Sun, 29 Nov 2026 16:33:14 -0500 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=fm3; t=1795987994; x=1796074394; bh=VjHMIfI53u zAgIXaARXry7nuWx4yT+jLVI2Vy/w/QBk=; b=AclwH0XSeOi4WAnzQvXwgKXB9l Wpdn2SFmKfYHS/Qr08g/OlkE9u0v2es0m3eRGTPxVXavjXwxbV8YBioTG0KCMEbp Ix66GtFK0jUoyiCuPNBJqBordjxfXCrRUTDXH8WMlnVngwRZue4g7yF49CtPjzSn aESXVZ1UbxlnA7pBKzLitrG0ruikBlubpVCvOQvdcF6AAgzHe6M9+Sto9OPW+dBm GRnvwNd6cmTF4bonkwM5VEnUY0vh4G8hUG3kLIgpa/O4JM32s+eyydzm/A8yq7Z7 28X3VsZZ9+iyLDE8VTsEo6Bz1mOWcSD3UwF3HVMiM8GlkSP9ol6aatY3lEOw== 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= fm3; t=1795987994; x=1796074394; bh=VjHMIfI53uzAgIXaARXry7nuWx4y T+jLVI2Vy/w/QBk=; b=htss3fkuVQJkmFVw/hPnsEArr2XyyC7zaVpObeEThUL8 thz7Ctx6ABmjNId4ocJQApa++eAH9hpQafVeUz0KIlapO2VArvPvGNXQkWfOdOHG XlWRXAm9isp1DCryepG4USIIYt1W1fUTxjEDCklc2ykL8hjZAJ2JIut3Ed8Z690F +z+1BTvV/QLezqfd2vZ+eXS9Zu7hnQP0nVEBtgTe7X66J1FcXYEs7QvzkPfoEfHH PpUohbsQoF+ZGMUDbSQuZ4x9dSwOBqmQlA1FtBOTsRleCgCLXUVXSCDrsweROMLq +/YZMoUdNA3/zkVGDJZqH9gLMFxhnBLS9KdwZL6uNQ== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=ownmail.net a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1795987994; d=ownmail.net; mf=PG5laWxiQG93bm1haWwubmV0Pg==; rt=PGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:jzpqK862pF3qrHCZyywIen93Cm/pECyqxGZndCovP2dnfOk Nt7+vu/uY3M+LdLZk6wp7KXxrlTFz055TTy5YFYgmacTfljDhIITzMVOPguSZYwt r33KUSHxZODkzKwBkePnZAbehR7n6hiuWdao6tbQiV/XChBOcAhHnX1vfHNadWF1 HL8U19ro36ErQzUCb49RFIZkRgwtQSvT1S7nXJzjPgN6qjDNUYqvtn+CRaIVJIU0 r1sH9V8ZVxixnZrlpNSNcqJlUVQ2dLFoIjfaB5/qe0mUV+tKs4CkDT9rOv20NJTL nojoLTcDmTBATxIlo664LQAJSubKyoWKXq0fGjQ==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=10; hn=cc,content-transfer-encoding,date,feedback-id,from, message-id,mime-version,reply-to,subject,to; Message-Instance: m=1; h=sha256:DoHfzUWb2Q1HE/KgnFRD/zDJzgwgA9jBZEKS3SnSbiQ=:YzXDEwVR9eNPmll2e24GgmtCuMURx888ahEhcATOtbs=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGMYYIeWdLBRtLnn54B80UgU8+UwZTIrgiHFhNPuZ5Yk4MhiCV6Hkr5aD8WPoejJC bGP4lhKXhheTjaYJ/3LtPAOxcK2vd6eN/tcmIT6CNKCk7syym205YYIcAjVm67lrV4zFq9 bod4Z4l6p4wBRwIsmFTdEdS8fYX5Tu7EHOyIqspqVSnGQJOVoVgMaXV9EjYopmn6+h2BiY qPUVfgrV6/MT0abRVU6rP+7ZJ75YePsppBrEmV+TfRhoeswMGGJwYDqB4AsmCCTsSjXwvS hVxkdCm7q2i7718hPF/gDcpCW5QSO2PHtV6XbgZptT5ZHB9+WxDey4Z9u9SbPvoR6N32DD 8AWu2DWg20VS+5J4yJYKdRy5Zu5AxnHvLT1Hs1KQAiAf8WwDq88CnKMmBgrAqCSJI+i68S e02X/gedavKN5bcvKbAon4Yzk2GNiB8zhl/APZGZDt3rrUIDirxWR0obPxZJAuatALgsDu eMAcmDEoU4D6Ct4fLT9H16O/3Q72bSU0VPRxJSIW1MHgqq4yG/kcU4kfjswcBzXI2rGZrq oPHGujgpX1vQnEzhsiplJbxbZ2GZtcSw39pKuBo5yN2nalc2wF0t6KBS5K88b+Ai6SEMJK l1ctlrOjcnp1jgvI+P+eH0/8Zk2kcx/kO+wCxQbvgiAcglgHeh+vsd64yHjA X-ME-Proxy: Feedback-ID: i9d664b8f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 29 Nov 2026 16:33:08 -0500 (EST) From: NeilBrown To: Alexander Viro , Christian Brauner Cc: David Howells , Marc Dionne , Jan Harkes , coda@cs.cmu.edu, Jan Kara , Richard Weinberger , Anton Ivanov , Johannes Berg , Jeff Layton , Amir Goldstein , linux-kernel@vger.kernel.org, codalist@coda.cs.cmu.edu, linux-fsdevel@vger.kernel.org, linux-um@lists.infradead.org, linux-afs@lists.infradead.org Subject: [PATCH v4 0/8] multiple-filesystems: prepare for changes to VFS locking Date: Mon, 30 Nov 2026 08:21:36 +1100 Message-ID: <20261129213259.2837044-1-neilb@ownmail.net> X-Mailer: git-send-email 2.50.0.107.gf914562f5916.dirty Reply-To: NeilBrown X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit So v3 was a bit of a disaster - sorry about that. I hope no-one spent much time looking at it :-( But I'm feeling better about this one - which doesn't try to do as much. I've fixed up a whole bunch of problems that sashiko.dev found in the afs patches, and made the procfs change a lot simpler. Hopefully it isn't too simple - it does mean iterate_shared can sometimes do more work, but I suspect the cost will be small. I now understand the context of d_add_ci() and realise that it has significant implications on my design. Any filesystem that uses d_add_ci() cannot cache negative dentries because (it seems) there is no canonical name for an equivalence classes of case-insensitive names. And that means I cannot lock a "name" in a directory by locking the corresponding dentry, at least not when the name doesn't exist yet. I think I have a solution for d_add_ci(), but there is some non-trival prep work needed so I'll delay that for now. So here are tiny changes to coda and hostfs, several changes to afs, and the afore-mentioned change to readdir in procfs. The goal is to a: not drop dentries while an operation is on-going b: not call d_alloc_parallel() while holding i_rwsem on the parent. I'll follow up if sasiko.dev is happy, so feel free to ignore these until that follow-up. Thanks, NeilBrown [PATCH v4 1/8] coda: don't d_drop() early. [PATCH v4 2/8] hostfs: don't d_drop() before d_splice_alias() in [PATCH v4 3/8] afs: don't unhash/rehash dentries during unlink/rename [PATCH v4 4/8] afs: use d_splice_alias() in afs_vnode_new_inode() [PATCH v4 5/8] afs: use d_alloc_trylock in afs_sillyrename() [PATCH v4 6/8] afs: use d_duplicate() [PATCH v4 7/8] procfs: drop parent lock for d_alloc_parallel() in [PATCH v4 8/8] afs: lookup_atsys to drop and reclaim lock.