Whamcloud - gitweb
LU-16954 llite: add SB_I_CGROUPWB on super block for cgroup 55/51955/7
authorQian Yingjin <qian@ddn.com>
Wed, 16 Aug 2023 04:02:22 +0000 (00:02 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 28 Sep 2023 08:00:11 +0000 (08:00 +0000)
commitdcc1dd39a67f15de9174e7acdda599e3c54c1421
tree81e0131197c481a84d79b0558b02568f12ed5aee
parent8320394725180b76e76f36b8a513f3c7bf11e65c
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.

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/fs/lustre-release/+/51955
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/llite/llite_lib.c