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>
} 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;