aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Christian Brauner <brauner@kernel.org> 2024-02-06 16:18:43 +0100
committerGravatar Christian Brauner <brauner@kernel.org> 2024-02-08 18:41:03 +0100
commit386dc41cf54dcf44ea40de1aca900f02b756cec0 (patch)
tree5e8a1d08c186c3081133848e5468109ccb0d2c13 /arch
parentLinux 6.8-rc1 (diff)
downloadlinux-386dc41cf54dcf44ea40de1aca900f02b756cec0.tar.gz
linux-386dc41cf54dcf44ea40de1aca900f02b756cec0.tar.bz2
linux-386dc41cf54dcf44ea40de1aca900f02b756cec0.zip
init: flush async file closing
When unpacking the initramfs or when mounting block devices we need to ensure that any delayed fput() finished to prevent spurious errors. The init process can be a proper kernel thread or a user mode helper. In the latter case PF_KTHREAD isn't set. So we need to do both flush_delayed_work() and task_work_run(). Since we'll port block device opening and closing to regular file open and closing we need to ensure the same as for the initramfs. So just make that a little helper. Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Tested-by: Srikanth Aithal <sraithal@amd.com> Link: https://lore.kernel.org/r/CA+G9fYttTwsbFuVq10igbSvP5xC6bf_XijM=mpUqrJV=uvUirQ@mail.gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions