Skip to content

Commit ed48d92

Browse files
Waiman-Longgregkh
authored andcommitted
cpuset: Fix incorrect memory_pressure control file mapping
commit 1c08c22c874ac88799cab1f78c40f46110274915 upstream. The memory_pressure control file was incorrectly set up without a private value (0, by default). As a result, this control file was treated like memory_migrate on read. By adding back the FILE_MEMORY_PRESSURE private value, the correct memory pressure value will be returned. Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org> Fixes: 7dbdb19 ("cgroup: replace cftype->mode with CFTYPE_WORLD_WRITABLE") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 15e94ec commit ed48d92

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/cpuset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,6 +1910,7 @@ static struct cftype files[] = {
19101910
{
19111911
.name = "memory_pressure",
19121912
.read_u64 = cpuset_read_u64,
1913+
.private = FILE_MEMORY_PRESSURE,
19131914
},
19141915

19151916
{

0 commit comments

Comments
 (0)