chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f632a66
)
cgroup: always recreate cgroup before we try to apply attributes
author
Lennart Poettering
<lennart@poettering.net>
Tue, 1 Nov 2011 21:02:36 +0000
(22:02 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 1 Nov 2011 21:02:36 +0000
(22:02 +0100)
We might have trimmed the cgroup tree previously, hence don't trust our
own "realized" flag, always recreate cgroup tree before applying our
attributes to make sure this actually works out.
https://bugzilla.redhat.com/show_bug.cgi?id=749687
src/cgroup.c
patch
|
blob
|
history
diff --git
a/src/cgroup.c
b/src/cgroup.c
index dcf2c2feb7a30d44fc347e5e0da2f30f1046be5b..be837c3d0f940f9e069c51dfc99862af774b9030 100644
(file)
--- a/
src/cgroup.c
+++ b/
src/cgroup.c
@@
-38,9
+38,6
@@
int cgroup_bonding_realize(CGroupBonding *b) {
assert(b->path);
assert(b->controller);
- if (b->realized)
- return 0;
-
r = cg_create(b->controller, b->path);
if (r < 0) {
log_warning("Failed to create cgroup %s:%s: %s", b->controller, b->path, strerror(-r));