]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: protect backing files with rcu
authorChristian Brauner <brauner@kernel.org>
Mon, 7 Oct 2024 14:23:57 +0000 (16:23 +0200)
committerChristian Brauner <brauner@kernel.org>
Tue, 8 Oct 2024 11:12:32 +0000 (13:12 +0200)
commit8b1bc2590af61129b82a189e9dc7c2804c34400e
tree3e78a212aa04bd7215b956175ae43c322466ff2e
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
fs: protect backing files with rcu

Currently backing files are not under any form of rcu protection.
Switching to file_ref requires rcu protection and so does the
speculative vma lookup. Switch backing files to the same rcu slab type
as regular files. There should be no additional magic required as the
lifetime of a backing file is always tied to a regular file.

Link: https://lore.kernel.org/r/20241007-brauner-file-rcuref-v2-1-387e24dc9163@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/file_table.c