From: Li Dongyang Date: Wed, 26 Jul 2023 10:52:24 +0000 (+1000) Subject: LU-16954 llite: do not set SB_I_CGROUPWB on super block X-Git-Tag: 2.15.58~130 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F51701%2F3;p=fs%2Flustre-release.git LU-16954 llite: do not set SB_I_CGROUPWB on super block On clients with a more recent kernel e.g. ubuntu2204, this makes the mount fails sometimes with sysfs: cannot create duplicate filename '/devices/virtual/bdi/lustre-ffff8dd549f3d000' Change-Id: Ie15e41eb9d039829545e1d69f97ed9e13f89e53e Fixes: f5a75ea44d ("LU-16697 llite: Set BDI_CAP_* flags for lustre") Test-Parameters: clientdistro=ubuntu2204 testlist=sanity,conf-sanity Signed-off-by: Li Dongyang Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51701 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Emoly Liu Reviewed-by: Qian Yingjin Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index ed41b20..591d522 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -1401,9 +1401,7 @@ int ll_fill_super(struct super_block *sb) sb->s_bdi->io_pages = 0; #endif sb->s_bdi->capabilities |= LL_BDI_CAP_FLAGS; -#ifdef SB_I_CGROUPWB - sb->s_iflags |= SB_I_CGROUPWB; -#endif + /* Call ll_debugfs_register_super() before lustre_process_log() * so that "llite.*.*" params can be processed correctly. */