Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
104f75cb
Commit
104f75cb
authored
Jul 24, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mm: vmscan: do not disable interrupts on -RT
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
8a56ce75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
mm/vmscan.c
mm/vmscan.c
+8
-2
No files found.
mm/vmscan.c
View file @
104f75cb
...
...
@@ -23,6 +23,7 @@
#include <linux/file.h>
#include <linux/writeback.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/buffer_head.h>
/* for try_to_release_page(),
buffer_heads_over_limit */
#include <linux/mm_inline.h>
...
...
@@ -1118,7 +1119,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
}
nr_reclaimed
+=
nr_freed
;
local_irq_disable
();
local_irq_disable
_nort
();
if
(
current_is_kswapd
())
{
__count_zone_vm_events
(
PGSCAN_KSWAPD
,
zone
,
nr_scan
);
__count_vm_events
(
KSWAPD_STEAL
,
nr_freed
);
...
...
@@ -1159,9 +1160,14 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
}
}
}
while
(
nr_scanned
<
max_scan
);
/*
* Non-PREEMPT_RT relies on IRQs-off protecting the page_states
* per-CPU data. PREEMPT_RT has that data protected even in
* __mod_page_state(), so no need to keep IRQs disabled.
*/
spin_unlock
(
&
zone
->
lru_lock
);
done:
local_irq_enable
();
local_irq_enable
_nort
();
pagevec_release
(
&
pvec
);
return
nr_reclaimed
;
}
...
...
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