Whamcloud - gitweb
LU-16954 llite: do not set SB_I_CGROUPWB on super block 01/51701/3
authorLi Dongyang <dongyangli@ddn.com>
Wed, 26 Jul 2023 10:52:24 +0000 (20:52 +1000)
committerOleg Drokin <green@whamcloud.com>
Thu, 3 Aug 2023 22:26:21 +0000 (22:26 +0000)
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 <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51701
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_lib.c

index ed41b20..591d522 100644 (file)
@@ -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.
         */