Skip to content

Commit

Permalink
ns_cgroup: remove unused spinlock
Browse files Browse the repository at this point in the history
I happened to find the spinlock in struct ns_cgroup is never used.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Jan 8, 2009
1 parent 75139b8 commit cae7a36
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/ns_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

struct ns_cgroup {
struct cgroup_subsys_state css;
spinlock_t lock;
};

struct cgroup_subsys ns_subsys;
Expand Down Expand Up @@ -84,7 +83,6 @@ static struct cgroup_subsys_state *ns_create(struct cgroup_subsys *ss,
ns_cgroup = kzalloc(sizeof(*ns_cgroup), GFP_KERNEL);
if (!ns_cgroup)
return ERR_PTR(-ENOMEM);
spin_lock_init(&ns_cgroup->lock);
return &ns_cgroup->css;
}

Expand Down

0 comments on commit cae7a36

Please sign in to comment.