Re: [PATCH 1/3] Btrfs: fix race in relocation that makes us miss extents

2016-05-09 Thread Liu Bo
On Mon, Apr 25, 2016 at 02:01:10AM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > Before it starts the actual process of moving extents, relocation first > sets the block group to read only mode, to prevent tasks from allocating > new extents from it, and then flushes delalloc and wa

[PATCH 1/3] Btrfs: fix race in relocation that makes us miss extents

2016-04-26 Thread fdmanana
From: Filipe Manana Before it starts the actual process of moving extents, relocation first sets the block group to read only mode, to prevent tasks from allocating new extents from it, and then flushes delalloc and waits for any ordered extents to complete. The flushing is done to synchronize wi