diff options
author | Slava Pestov <sp@daterainc.com> | 2014-04-22 03:23:12 +0200 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2014-08-05 00:23:03 +0200 |
commit | c5aa4a3157b55bdca18dd2a9d9f43314470b6d32 (patch) | |
tree | 561c55e24a7bc8d646ef2af5bb039b7b815bb676 /drivers/md/bcache/super.c | |
parent | bcache: fix crash on shutdown in passthrough mode (diff) | |
download | linux-c5aa4a3157b55bdca18dd2a9d9f43314470b6d32.tar.xz linux-c5aa4a3157b55bdca18dd2a9d9f43314470b6d32.zip |
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.c | 2 |
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; |