cls_cgroup: remove unneeded cgroup_lock
Subsystems (3)
PATCH 1/2 cls_cgroup: remove unneeded cgroup_lock
From: Li Zefan <[email protected]>
We can remove this lock here, since we are in cgroup write handler and thus the cgrp is guaranteed to be valid, and no lock is needed when writing a u32 variable.
Signed-off-by Li Zefan <[email protected]>
Acked-by Paul Menage <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
net/sched/cls_cgroup.c | 6 ------ 1 file changed, 6 deletions(-)
net/sched/cls_cgroup.c renamed from net/sched/cls_cgroup.c~cls_cgroup-remove-unneeded-cgroup_lock +0 -6
@@ -62,13 +62,7 @@ static u64 read_classid(struct cgroup *cstatic int write_classid (struct cgroup *cgrp,struct cftype *cft,u64 value) { -if (!cgroup_lock_live_group (cgrp)) -return -ENODEV ; -cgrp_cls_state (cgrp)->classid = (u32 ) value; - -cgroup_unlock (); -return 0 ; }
_
From: [email protected]
Date: Tue, 12 May 2009 13:47:33 -0700
Quoted 9 lines
From: Li Zefan <[email protected]>
We can remove this lock here, since we are in cgroup write handler and thus the cgrp is guaranteed to be valid, and no lock is needed when writing a u32 variable.
Signed-off-by Li Zefan <[email protected]>Acked-by Paul Menage <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied to net-next-2.6