Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
66577193
Commit
66577193
authored
Jun 28, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure that nsproxy_cache is initialized early enough
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1ba10681
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/linux/nsproxy.h
include/linux/nsproxy.h
+1
-0
kernel/fork.c
kernel/fork.c
+1
-0
kernel/nsproxy.c
kernel/nsproxy.c
+1
-3
No files found.
include/linux/nsproxy.h
View file @
66577193
...
...
@@ -68,6 +68,7 @@ void switch_task_namespaces(struct task_struct *tsk, struct nsproxy *new);
void
free_nsproxy
(
struct
nsproxy
*
ns
);
int
unshare_nsproxy_namespaces
(
unsigned
long
,
struct
nsproxy
**
,
struct
fs_struct
*
);
int
__init
nsproxy_cache_init
(
void
);
static
inline
void
put_nsproxy
(
struct
nsproxy
*
ns
)
{
...
...
kernel/fork.c
View file @
66577193
...
...
@@ -1574,6 +1574,7 @@ void __init proc_caches_init(void)
SLAB_HWCACHE_ALIGN
|
SLAB_PANIC
|
SLAB_NOTRACK
,
NULL
);
vm_area_cachep
=
KMEM_CACHE
(
vm_area_struct
,
SLAB_PANIC
);
mmap_init
();
nsproxy_cache_init
();
}
/*
...
...
kernel/nsproxy.c
View file @
66577193
...
...
@@ -271,10 +271,8 @@ SYSCALL_DEFINE2(setns, int, fd, int, nstype)
return
err
;
}
static
int
__init
nsproxy_cache_init
(
void
)
int
__init
nsproxy_cache_init
(
void
)
{
nsproxy_cachep
=
KMEM_CACHE
(
nsproxy
,
SLAB_PANIC
);
return
0
;
}
module_init
(
nsproxy_cache_init
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment