mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
zsmalloc: remove extra cond_resched() in __zs_compact
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]>
This commit is contained in:
parent
81da9b13f7
commit
160a117f08
1 changed files with 0 additions and 2 deletions
|
|
@ -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))) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue