Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49e83f57 authored by Liu Bo's avatar Liu Bo Committed by David Sterba
Browse files

Btrfs: protect conditions within root->log_mutex while waiting



Both wait_for_commit() and wait_for_writer() are checking the
condition out of the mutex lock.

This refactors code a bit to be lock safe.

Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 45bac0f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment