Skip to content
Commit 6dd70ce4 authored by Jan Kara's avatar Jan Kara Committed by Chris Mason
Browse files

btrfs: Fix busyloops in transaction waiting code



wait_log_commit() and wait_for_writer() were using slightly different
conditions for deciding whether they should call schedule() and whether they
should continue in the wait loop. Thus it could happen that we busylooped when
the first condition was not true while the second one was. That is burning CPU
cycles needlessly and is deadly on UP machines...

Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 357b9784
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