Commit e4f80303 authored by Mike Snitzer's avatar Mike Snitzer

dm thin: add cond_resched() to various workqueue loops

Otherwise on resource constrained systems these workqueues may be too
greedy.
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent f77692d6
......@@ -2209,6 +2209,7 @@ static void process_thin_deferred_bios(struct thin_c *tc)
throttle_work_update(&pool->throttle);
dm_pool_issue_prefetches(pool->pmd);
}
cond_resched();
}
blk_finish_plug(&plug);
}
......@@ -2291,6 +2292,7 @@ static void process_thin_deferred_cells(struct thin_c *tc)
else
pool->process_cell(tc, cell);
}
cond_resched();
} while (!list_empty(&cells));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment