• Josef Bacik's avatar
    Btrfs: handle errors when doing slow caching · 36cce922
    Josef Bacik authored
    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 of error and
    makes everybody bail out if we have an error.  Alex tested and verified this
    patch fixed his problem.  This fixes bz 59431.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
    36cce922
ctree.h 128 KB