Skip to content
Snippets Groups Projects
Commit 0c79c620 authored by Josef Bacik's avatar Josef Bacik Committed by Mike Snitzer
Browse files

dm log writes: don't use all the cpu while waiting to log blocks


The check to see if the logging kthread needs to go to sleep is wrong,
it checks lc->pending_blocks, which will be non-0 if there are any
blocks that are pending, whether they are ready to be logged or not.
What we really want is to go to sleep until it's time to log blocks, so
change this check so we do actually go to sleep in between flushes.

Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent cf0dec66
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment