* [PATCH] ns_cgroup: remove unused spinlock
@ 2008-11-21 3:59 Li Zefan
0 siblings, 0 replies; 2+ messages in thread
From: Li Zefan @ 2008-11-21 3:59 UTC (permalink / raw)
To: Andrew Morton; +Cc: Paul Menage, Serge E. Hallyn, LKML, Linux Containers
I happened to find the spinlock in struct ns_cgroup is never
used.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
kernel/ns_cgroup.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/kernel/ns_cgroup.c b/kernel/ns_cgroup.c
index 43c2111..78bc3fd 100644
--- a/kernel/ns_cgroup.c
+++ b/kernel/ns_cgroup.c
@@ -13,7 +13,6 @@
struct ns_cgroup {
struct cgroup_subsys_state css;
- spinlock_t lock;
};
struct cgroup_subsys ns_subsys;
@@ -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;
}
--
1.5.4.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] ns_cgroup: remove unused spinlock
@ 2008-11-21 3:59 Li Zefan
0 siblings, 0 replies; 2+ messages in thread
From: Li Zefan @ 2008-11-21 3:59 UTC (permalink / raw)
To: Andrew Morton; +Cc: Paul Menage, Linux Containers, LKML
I happened to find the spinlock in struct ns_cgroup is never
used.
Signed-off-by: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
kernel/ns_cgroup.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/kernel/ns_cgroup.c b/kernel/ns_cgroup.c
index 43c2111..78bc3fd 100644
--- a/kernel/ns_cgroup.c
+++ b/kernel/ns_cgroup.c
@@ -13,7 +13,6 @@
struct ns_cgroup {
struct cgroup_subsys_state css;
- spinlock_t lock;
};
struct cgroup_subsys ns_subsys;
@@ -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;
}
--
1.5.4.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-21 3:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 3:59 [PATCH] ns_cgroup: remove unused spinlock Li Zefan
-- strict thread matches above, loose matches on Subject: below --
2008-11-21 3:59 Li Zefan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.