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:
81da9b1
)
zsmalloc: remove extra cond_resched() in __zs_compact
author
Sergey Senozhatsky
<
[email protected]
>
Wed, 15 Apr 2015 23:16:24 +0000
(16:16 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 15 Apr 2015 23:35:22 +0000
(16:35 -0700)
Do not perform cond_resched() before the busy compaction loop in
__zs_compact(), because this loop does it when needed.
Signed-off-by: Sergey Senozhatsky <
[email protected]
>
Acked-by: Minchan Kim <
[email protected]
>
Cc: Nitin Gupta <
[email protected]
>
Cc: Stephen Rothwell <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/zsmalloc.c
patch
|
blob
|
history
diff --git
a/mm/zsmalloc.c
b/mm/zsmalloc.c
index e24f7ccc5865154462ef12ba4f1a68a931ec73be..08bd7a3d464a9c6959a39e269d2284600e750a50 100644
(file)
--- a/
mm/zsmalloc.c
+++ b/
mm/zsmalloc.c
@@
-1711,8
+1711,6
@@
static unsigned long __zs_compact(struct zs_pool *pool,
struct page *dst_page = NULL;
unsigned long nr_total_migrated = 0;
- cond_resched();
-
spin_lock(&class->lock);
while ((src_page = isolate_source_page(class))) {