Skip to content

Commit 1efd24f

Browse files
xemulLinus Torvalds
authored andcommitted
Remove unused member from nsproxy
The nslock spinlock is not used in the kernel at all. Remove it. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Serge Hallyn <serue@us.ibm.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Herbert Poetzl <herbert@13thfloor.at> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 970a864 commit 1efd24f

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

‎include/linux/init_task.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ extern struct nsproxy init_nsproxy;
7676
#define INIT_NSPROXY(nsproxy) { \
7777
.pid_ns = &init_pid_ns, \
7878
.count = ATOMIC_INIT(1), \
79-
.nslock = __SPIN_LOCK_UNLOCKED(nsproxy.nslock), \
8079
.uts_ns = &init_uts_ns, \
8180
.mnt_ns = NULL, \
8281
INIT_NET_NS(net_ns) \

‎include/linux/nsproxy.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct pid_namespace;
2323
*/
2424
struct nsproxy {
2525
atomic_t count;
26-
spinlock_t nslock;
2726
struct uts_namespace *uts_ns;
2827
struct ipc_namespace *ipc_ns;
2928
struct mnt_namespace *mnt_ns;

0 commit comments

Comments
 (0)