]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: make insert_inode_locked() wait for inode destruction
authorMateusz Guzik <mjguzik@gmail.com>
Wed, 14 Jan 2026 09:47:16 +0000 (10:47 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 14 Jan 2026 16:05:35 +0000 (17:05 +0100)
commit88ec797c468097a8ce97694ed11ea9c982598ec0
tree01fc87815d73b9e176515c447d79098c942d653a
parentaaf76839616a3cff7bfff6a888e1762bc1d0c235
fs: make insert_inode_locked() wait for inode destruction

This is the only routine which instead skipped instead of waiting.

The current behavior is arguably a bug as it results in a corner case
where the inode hash can have *two* matching inodes, one of which is on
its way out.

Ironing out this difference is an incremental step towards sanitizing
the API.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20260114094717.236202-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/inode.c