projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netns: make nsid_lock per net
[firefly-linux-kernel-4.4.55.git]
/
include
/
net
/
net_namespace.h
diff --git
a/include/net/net_namespace.h
b/include/net/net_namespace.h
index 3f850acc844e7ca99143afc144e6017bc88fce28..72eb2372329453e2f118a9af1627c7ad27e50721 100644
(file)
--- a/
include/net/net_namespace.h
+++ b/
include/net/net_namespace.h
@@
-58,6
+58,7
@@
struct net {
struct list_head exit_list; /* Use only net_mutex */
struct user_namespace *user_ns; /* Owning user namespace */
+ spinlock_t nsid_lock;
struct idr netns_ids;
struct ns_common ns;