Merge branch 'foreign/liubo/replace-lockup' into for-chris-4.6
authorDavid Sterba <dsterba@suse.com>
Fri, 26 Feb 2016 14:38:32 +0000 (15:38 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 26 Feb 2016 14:38:32 +0000 (15:38 +0100)
1  2 
fs/btrfs/ctree.h
fs/btrfs/dev-replace.c
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/reada.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index bf69c008249cea38d265be871e3324309d31470d,fe3d4c7b6342caa418fc761c422d2e06ecbb2011..b892914968c1852751463d9d14eb5023fbb99df7
@@@ -451,17 -456,13 +451,17 @@@ static struct reada_extent *reada_find_
                        BUG_ON(fs_info == NULL);
                        radix_tree_delete(&fs_info->reada_tree, index);
                        spin_unlock(&fs_info->reada_lock);
-                       btrfs_dev_replace_unlock(&fs_info->dev_replace);
+                       btrfs_dev_replace_unlock(&fs_info->dev_replace, 0);
                        goto error;
                }
 +              have_zone = 1;
        }
        spin_unlock(&fs_info->reada_lock);
-       btrfs_dev_replace_unlock(&fs_info->dev_replace);
+       btrfs_dev_replace_unlock(&fs_info->dev_replace, 0);
  
 +      if (!have_zone)
 +              goto error;
 +
        btrfs_put_bbio(bbio);
        return re;
  
Simple merge
Simple merge