commit | 49e83f5735cf1aca03ca8b4eadca475c1f3b0b14 | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.li.liu@oracle.com> | Fri Sep 01 16:14:30 2017 -0600 |
committer | David Sterba <dsterba@suse.com> | Mon Oct 30 12:27:55 2017 +0100 |
tree | 39541ef4b34a4fcbd9efb91ed90dac62f5567e4c | |
parent | 45bac0f3d24a76f127a118e7b95a54e616449d16 [diff] |
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: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>