[PATCH] Btrfs: handle errors when doing slow caching V2

2013-08-27 Thread Josef Bacik
Alex Lyakas reported a bug where wait_block_group_cache_progress() would wait forever if a drive failed. This is because we just bail out if there is an error while trying to cache a block group, we don't update anybody who may be waiting. So this introduces a new enum for the cache state in case

Re: [PATCH] Btrfs: handle errors when doing slow caching

2013-08-27 Thread Josef Bacik
On Tue, Aug 27, 2013 at 01:26:36PM +0300, Alex Lyakas wrote: > Hi Josef, > thanks for addressing this. > > On Mon, Aug 5, 2013 at 6:19 PM, Josef Bacik wrote: > > Alex Lyakas reported a bug where wait_block_group_cache_progress() would > > wait > > forever if a drive failed. This is because we j

Re: [PATCH] Btrfs: handle errors when doing slow caching

2013-08-27 Thread Alex Lyakas
Hi Josef, thanks for addressing this. On Mon, Aug 5, 2013 at 6:19 PM, Josef Bacik wrote: > Alex Lyakas reported a bug where wait_block_group_cache_progress() would wait > forever if a drive failed. This is because we just bail out if there is an > error while trying to cache a block group, we do

[PATCH] Btrfs: handle errors when doing slow caching

2013-08-05 Thread Josef Bacik
Alex Lyakas reported a bug where wait_block_group_cache_progress() would wait forever if a drive failed. This is because we just bail out if there is an error while trying to cache a block group, we don't update anybody who may be waiting. So this introduces a new enum for the cache state in case