]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/nsproxy.h
[NETFILTER]: nf_conntrack: move extern declaration to header files
[linux-2.6-omap-h63xx.git] / include / linux / nsproxy.h
index 9c2e0ad508dbf455483cfa9c2fb8512e2c0f7e5b..971d1c6dfc4bf0dbffff439c5ee643fc5547832e 100644 (file)
@@ -6,6 +6,7 @@
 
 struct namespace;
 struct uts_namespace;
+struct ipc_namespace;
 
 /*
  * A structure to contain pointers to all per-process
@@ -23,6 +24,7 @@ struct nsproxy {
        atomic_t count;
        spinlock_t nslock;
        struct uts_namespace *uts_ns;
+       struct ipc_namespace *ipc_ns;
        struct namespace *namespace;
 };
 extern struct nsproxy init_nsproxy;
@@ -43,8 +45,10 @@ static inline void exit_task_namespaces(struct task_struct *p)
 {
        struct nsproxy *ns = p->nsproxy;
        if (ns) {
-               put_nsproxy(ns);
+               task_lock(p);
                p->nsproxy = NULL;
+               task_unlock(p);
+               put_nsproxy(ns);
        }
 }
 #endif