* [PATCH] fs: retire stale lock ordering annotations from inode hash
@ 2026-04-23 17:04 Mateusz Guzik
2026-04-27 9:25 ` Jan Kara
2026-04-27 14:44 ` Christian Brauner
0 siblings, 2 replies; 3+ messages in thread
From: Mateusz Guzik @ 2026-04-23 17:04 UTC (permalink / raw)
To: brauner; +Cc: viro, jack, linux-kernel, linux-fsdevel, Mateusz Guzik
1. iunique does not take the hash lock as of:
3f19b2ab97a97b41 ("vfs, afs, ext4: Make the inode hash table RCU searchable")
2. s_inode_list_lock is no longer taken under the hash lock as of:
c918f15420e336a9 ("fs: call inode_sb_list_add() outside of inode hash lock")
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
---
fs/inode.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/fs/inode.c b/fs/inode.c
index 39cb22e63d5b..2ebc3eff64fb 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -53,11 +53,7 @@
* inode->i_lock
*
* inode_hash_lock
- * inode->i_sb->s_inode_list_lock
* inode->i_lock
- *
- * iunique_lock
- * inode_hash_lock
*/
static unsigned int i_hash_mask __ro_after_init;
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fs: retire stale lock ordering annotations from inode hash
2026-04-23 17:04 [PATCH] fs: retire stale lock ordering annotations from inode hash Mateusz Guzik
@ 2026-04-27 9:25 ` Jan Kara
2026-04-27 14:44 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kara @ 2026-04-27 9:25 UTC (permalink / raw)
To: Mateusz Guzik; +Cc: brauner, viro, jack, linux-kernel, linux-fsdevel
On Thu 23-04-26 19:04:31, Mateusz Guzik wrote:
> 1. iunique does not take the hash lock as of:
> 3f19b2ab97a97b41 ("vfs, afs, ext4: Make the inode hash table RCU searchable")
> 2. s_inode_list_lock is no longer taken under the hash lock as of:
> c918f15420e336a9 ("fs: call inode_sb_list_add() outside of inode hash lock")
>
> Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Looks good. Feel free to add:
Reviewed-by: Jan Kara <jack@suse.cz>
Honza
> ---
> fs/inode.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/fs/inode.c b/fs/inode.c
> index 39cb22e63d5b..2ebc3eff64fb 100644
> --- a/fs/inode.c
> +++ b/fs/inode.c
> @@ -53,11 +53,7 @@
> * inode->i_lock
> *
> * inode_hash_lock
> - * inode->i_sb->s_inode_list_lock
> * inode->i_lock
> - *
> - * iunique_lock
> - * inode_hash_lock
> */
>
> static unsigned int i_hash_mask __ro_after_init;
> --
> 2.48.1
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fs: retire stale lock ordering annotations from inode hash
2026-04-23 17:04 [PATCH] fs: retire stale lock ordering annotations from inode hash Mateusz Guzik
2026-04-27 9:25 ` Jan Kara
@ 2026-04-27 14:44 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Christian Brauner @ 2026-04-27 14:44 UTC (permalink / raw)
To: Mateusz Guzik; +Cc: Christian Brauner, viro, jack, linux-kernel, linux-fsdevel
On Thu, 23 Apr 2026 19:04:31 +0200, Mateusz Guzik wrote:
> 1. iunique does not take the hash lock as of:
> 3f19b2ab97a97b41 ("vfs, afs, ext4: Make the inode hash table RCU searchable")
> 2. s_inode_list_lock is no longer taken under the hash lock as of:
> c918f15420e336a9 ("fs: call inode_sb_list_add() outside of inode hash lock")
Applied to the vfs-7.2.inode branch of the vfs/vfs.git tree.
Patches in the vfs-7.2.inode branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.2.inode
[1/1] fs: retire stale lock ordering annotations from inode hash
https://git.kernel.org/vfs/vfs/c/8edf31f99a20
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-27 14:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-23 17:04 [PATCH] fs: retire stale lock ordering annotations from inode hash Mateusz Guzik
2026-04-27 9:25 ` Jan Kara
2026-04-27 14:44 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox