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
c5d9af3e
Commit
c5d9af3e
authored
Mar 08, 2004
by
Rusty Russell
Committed by
Linus Torvalds
Mar 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Clean up hotplug slab some more
This is a cleaner fix for the previous bogon fix.
parent
3d32d5d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
mm/slab.c
mm/slab.c
+1
-3
No files found.
mm/slab.c
View file @
c5d9af3e
...
...
@@ -601,7 +601,6 @@ static int __devinit cpuup_callback(struct notifier_block *nfb,
{
long
cpu
=
(
long
)
hcpu
;
kmem_cache_t
*
cachep
;
struct
list_head
*
p
;
switch
(
action
)
{
case
CPU_UP_PREPARE
:
...
...
@@ -634,9 +633,8 @@ static int __devinit cpuup_callback(struct notifier_block *nfb,
case
CPU_UP_CANCELED
:
down
(
&
cache_chain_sem
);
list_for_each
(
p
,
&
cache_chain
)
{
list_for_each
_entry
(
cachep
,
&
cache_chain
,
next
)
{
struct
array_cache
*
nc
;
kmem_cache_t
*
cachep
=
list_entry
(
p
,
kmem_cache_t
,
next
);
nc
=
cachep
->
array
[
cpu
];
cachep
->
array
[
cpu
]
=
NULL
;
...
...
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