From: Pavel Emelyanov The nslock spinlock is not used in the kernel at all. Remove it. Signed-off-by: Pavel Emelyanov Acked-by: Serge Hallyn Cc: Cedric Le Goater Cc: "Eric W. Biederman" Cc: Herbert Poetzl Signed-off-by: Andrew Morton --- include/linux/init_task.h | 1 - include/linux/nsproxy.h | 1 - 2 files changed, 2 deletions(-) diff -puN include/linux/init_task.h~remove-unused-member-from-nsproxy include/linux/init_task.h --- a/include/linux/init_task.h~remove-unused-member-from-nsproxy +++ a/include/linux/init_task.h @@ -76,7 +76,6 @@ extern struct nsproxy init_nsproxy; #define INIT_NSPROXY(nsproxy) { \ .pid_ns = &init_pid_ns, \ .count = ATOMIC_INIT(1), \ - .nslock = __SPIN_LOCK_UNLOCKED(nsproxy.nslock), \ .uts_ns = &init_uts_ns, \ .mnt_ns = NULL, \ INIT_NET_NS(net_ns) \ diff -puN include/linux/nsproxy.h~remove-unused-member-from-nsproxy include/linux/nsproxy.h --- a/include/linux/nsproxy.h~remove-unused-member-from-nsproxy +++ a/include/linux/nsproxy.h @@ -23,7 +23,6 @@ struct pid_namespace; */ struct nsproxy { atomic_t count; - spinlock_t nslock; struct uts_namespace *uts_ns; struct ipc_namespace *ipc_ns; struct mnt_namespace *mnt_ns; _