Whamcloud - gitweb
LU-16954 llite: add SB_I_CGROUPWB on super block for cgroup
authorQian Yingjin <qian@ddn.com>
Wed, 16 Aug 2023 04:02:22 +0000 (00:02 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 2 Oct 2023 01:01:41 +0000 (01:01 +0000)
commit45ec86e3b3b3b0787a395c9cd6ff060db4fec17b
tree0afc909476baa0c06914d118da0c181d904defe4
parentb8ca75e7ef2c01ec1641060978a1d6eec9b3a8dc
LU-16954 llite: add SB_I_CGROUPWB on super block for cgroup

Cgroup support can be enabled per super_block by setting
SB_I_CGROUPWB in ->s_iflags.
Cgroup writeback requires support from both the bdi and
filesystem.
This patch adds SB_I_CGROUPWB flag on super block for Lustre.
This is required by the subsequent patch series to support
cgroup in Lustre.

Adding this flags for Lustre super block will cause the remount
failure on Maloo testing on Unbutu 2204 v5.15 kernel due to the
duplicate filename (sysfs) for bdi device.
To avoid remount failure, we explicitly unregister the sysfs for
the @bdi.

Lustre-change: https://review.whamcloud.com/51955
Lustre-commit: dcc1dd39a67f15de9174e7acdda599e3c54c1421

Test-Parameters: clientdistro=ubuntu2204 testlist=sanity-sec
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I7fff4f26aa1bfdb0e5de0c4bdbff44ed74d18c2d
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52538
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/llite/llite_lib.c