projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e08159
)
blk-throttle: Free up policy node associated with deleted rule
author
Vivek Goyal
<vgoyal@redhat.com>
Tue, 25 Oct 2011 13:48:12 +0000
(15:48 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 25 Oct 2011 13:48:12 +0000
(15:48 +0200)
If a rule is being deleted, free up associated policy node. Otherwise
that memory is leaked.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
patch
|
blob
|
history
diff --git
a/block/blk-cgroup.c
b/block/blk-cgroup.c
index d61ec5636ce0ab2c62f269ea78b9f37a2251a166..61553670735da49062ba256fe3e4cd138063ca17 100644
(file)
--- a/
block/blk-cgroup.c
+++ b/
block/blk-cgroup.c
@@
-1075,6
+1075,7
@@
static int blkiocg_file_write(struct cgroup *cgrp, struct cftype *cft,
if (blkio_delete_rule_command(newpn)) {
blkio_policy_delete_node(pn);
+ kfree(pn);
spin_unlock_irq(&blkcg->lock);
goto update_io_group;
}