projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
894befe
)
mm/vmscan: remove redundant current_may_throttle() check
author
Andrey Ryabinin
<
[email protected]
>
Tue, 10 Apr 2018 23:27:55 +0000
(16:27 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Apr 2018 17:28:29 +0000
(10:28 -0700)
Only kswapd can have non-zero nr_immediate, and current_may_throttle()
is always true for kswapd (PF_LESS_THROTTLE bit is never set) thus it's
enough to check stat.nr_immediate only.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Andrey Ryabinin <
[email protected]
>
Acked-by: Michal Hocko <
[email protected]
>
Cc: Shakeel Butt <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Tejun Heo <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index 6d74b12099bdee287edb85640ad013a886402f1f..403f59edd53e9d58a59783be96d6c42627ca46a2 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-1807,7
+1807,7
@@
shrink_inactive_list(unsigned long nr_to_scan, struct lruvec *lruvec,
* that pages are cycling through the LRU faster than
* they are written so also forcibly stall.
*/
- if (stat.nr_immediate
&& current_may_throttle()
)
+ if (stat.nr_immediate)
congestion_wait(BLK_RW_ASYNC, HZ/10);
}