]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
md: suppress spurious superblock update error message for dm-raid
authorChen Cheng <chencheng@fnnas.com>
Tue, 10 Feb 2026 13:38:47 +0000 (21:38 +0800)
committerYu Kuai <yukuai@fnnas.com>
Sun, 15 Mar 2026 17:24:59 +0000 (01:24 +0800)
commiteff0d74c6c8fd358bc9474c05002e51fa5aa56ad
tree133bfa683375f3d1b108bc5315c3bc2182fb1278
parent5d540162059598c3f79e12f96064825cc91f0f9c
md: suppress spurious superblock update error message for dm-raid

dm-raid has external metadata management (mddev->external = 1) and
no persistent superblock (mddev->persistent = 0). For these arrays,
there's no superblock to update, so the error message is spurious.

The error appears as:
md_update_sb: can't update sb for read-only array md0

Fixes: 8c9e376b9d1a ("md: warn about updating super block failure")
Reported-by: Tj <tj.iam.tj@proton.me>
Closes: https://lore.kernel.org/all/20260128082430.96788-1-tj.iam.tj@proton.me/
Signed-off-by: Chen Cheng <chencheng@fnnas.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Link: https://lore.kernel.org/linux-raid/20260210133847.269986-1-chencheng@fnnas.com
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
drivers/md/md.c