summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/super.c
diff options
context:
space:
mode:
authorSlava Pestov <sp@daterainc.com>2014-04-22 05:23:12 +0400
committerKent Overstreet <kmo@daterainc.com>2014-08-05 02:23:03 +0400
commitc5aa4a3157b55bdca18dd2a9d9f43314470b6d32 (patch)
tree561c55e24a7bc8d646ef2af5bb039b7b815bb676 /drivers/md/bcache/super.c
parenta664d0f05a2ec02c8f042db536d84d15d6e19e81 (diff)
downloadlinux-c5aa4a3157b55bdca18dd2a9d9f43314470b6d32.tar.xz
bcache: wait for buckets when allocating new btree root
Tested: - sometimes bcache_tier test would hang on startup with a failure to allocate the btree root -- no longer seeing this Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/super.c')
-rw-r--r--drivers/md/bcache/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 6ceaec35b871..3b043a04d9bd 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -1669,7 +1669,7 @@ static void run_cache_set(struct cache_set *c)
goto err;
err = "cannot allocate new btree root";
- c->root = bch_btree_node_alloc(c, NULL, 0);
+ c->root = __bch_btree_node_alloc(c, NULL, 0, true);
if (IS_ERR_OR_NULL(c->root))
goto err;