Copying controllers settings from source to destination cgroups,
overwrites the value of the destination cgroup controller and hence
the dirty flag for all the controller settings should be
unconditionally set.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit
4a31a98174e2593b8cf0be2b8ee23e21ae8a84e5)
} else {
dst_val->prev_name = NULL;
}
-
- dst_val->dirty = src_val->dirty;
+ /*
+ * set dirty flag unconditionally, as we overwrite
+ * destination controller values.
+ */
+ dst_val->dirty = true;
}
return ret;