From d604d68c3f8ab8fbb52f5dd19651a11ac3dc0374 Mon Sep 17 00:00:00 2001 From: Li Dongyang Date: Wed, 26 Jul 2023 20:52:24 +1000 Subject: [PATCH] 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 --- lustre/llite/llite_lib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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. */ -- 1.8.3.1