Re: [PATCH] btrfs: Move error handling of btrfs_start_dirty_block_groups closer to call site

2018-02-14 Thread David Sterba
On Fri, Feb 09, 2018 at 11:30:18AM +0200, Nikolay Borisov wrote: > Even though btrfs_start_dirty_block_groups fairly in the beginning of > btrfs_commit_transaction outside of the critical section defined by the > transaction states it can only be run by a single comitter. In other > words it define

[PATCH] btrfs: Move error handling of btrfs_start_dirty_block_groups closer to call site

2018-02-09 Thread Nikolay Borisov
Even though btrfs_start_dirty_block_groups fairly in the beginning of btrfs_commit_transaction outside of the critical section defined by the transaction states it can only be run by a single comitter. In other words it defines its own critical section thanks to the BTRFS_TRANS_DIRTY_BG run flag an