Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312048
b: refs/heads/master
c: 1c7e7f6
h: refs/heads/master
v: v3
  • Loading branch information
Aaditya Kumar authored and Linus Torvalds committed Jul 17, 2012
1 parent 10ac7bf commit da4b77a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a75c6e5240f7edc5955e8da5b94bde6f96070b3
refs/heads/master: 1c7e7f6c0703d03af6bcd5ccc11fc15d23e5ecbe
5 changes: 4 additions & 1 deletion trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,10 @@ static void kswapd_try_to_sleep(pg_data_t *pgdat, int order, int classzone_idx)
* them before going back to sleep.
*/
set_pgdat_percpu_threshold(pgdat, calculate_normal_threshold);
schedule();

if (!kthread_should_stop())
schedule();

set_pgdat_percpu_threshold(pgdat, calculate_pressure_threshold);
} else {
if (remaining)
Expand Down

0 comments on commit da4b77a

Please sign in to comment.