diff options
| author | JP Kobryn <[email protected]> | 2025-05-28 23:51:30 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2025-05-31 00:36:13 +0000 |
| commit | c853d18706de8c9525126b362f747d2e480e93df (patch) | |
| tree | 3a69a446f7ae060f3543be2cf4d1febb023de917 /rust/helpers/helpers.c | |
| parent | Merge tag 'pull-automount' of git://git.kernel.org/pub/scm/linux/kernel/git/v... (diff) | |
| download | kernel-c853d18706de8c9525126b362f747d2e480e93df.tar.gz kernel-c853d18706de8c9525126b362f747d2e480e93df.zip | |
cgroup: adjust criteria for rstat subsystem cpu lock access
Previously it was found that on uniprocessor machines the size of
raw_spinlock_t could be zero so a pre-processor conditional was used to
avoid the allocation of ss->rstat_ss_cpu_lock. The conditional did not take
into account cases where lock debugging features were enabled. Cover these
cases along with the original non-smp case by explicitly using the size of
size of the lock type as criteria for allocation/access where applicable.
Signed-off-by: JP Kobryn <[email protected]>
Fixes: 748922dcfabd "cgroup: use subsystem-specific rstat locks to avoid contention"
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Reviewed-by: Shakeel Butt <[email protected]>
Reviewed-by: Waiman Long <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
