Re: [PATCH] initrd: flush deferred fput() before mounting root
From: Christian Brauner
Date: Thu Nov 05 2026 - 13:07:19 EST
On Wed, 30 Sep 2026 16:46:32 +0800, Abbott Liu wrote:
> Booting an old-style initrd, i.e. a bare filesystem image rather than a
> cpio archive, with "root=/dev/ram rootfstype=squashfs" can fail to
> mount the root filesystem and panic:
>
> RAMDISK: squashfs filesystem found at block 0
> RAMDISK: Loading 68449KiB [1 disk] into ram disk... done.
> No filesystem could mount root, tried:
> squashfs
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> "/dev/ram" or unknown-block(1,0)
>
> [...]
I reworded the commit message and cut the comment in the code down to what's
necessary.
---
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes 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.fixes
[1/1] initrd: flush deferred fput() before mounting root
https://git.kernel.org/vfs/vfs/c/807c1d7125a2