]> git.ipfire.org Git - thirdparty/linux.git/commit
super: massage wait event mechanism
authorChristian Brauner <brauner@kernel.org>
Mon, 27 Nov 2023 11:51:30 +0000 (12:51 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 28 Nov 2023 18:15:34 +0000 (19:15 +0100)
commitb30850c58b5b9b7008eb6fc4a65bfb003a0714a7
tree6306ac327f35d6baef5e19f6310b45f08778f052
parentafde134b5bd02a5c719336ca1d0d3cb7e4def70e
super: massage wait event mechanism

We're currently using two separate helpers wait_born() and wait_dead()
when we can just all do it in a single helper super_load_flags(). We're
also acquiring the lock before we check whether this superblock is even
a viable candidate. If it's already dying we don't even need to bother
with the lock.

Link: https://lore.kernel.org/r/20231127-vfs-super-massage-wait-v1-1-9ab277bfd01a@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/super.c