diff options
author | Slava Pestov <sp@daterainc.com> | 2014-04-21 18:23:12 -0700 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2014-08-04 15:23:03 -0700 |
commit | c5aa4a3157b55bdca18dd2a9d9f43314470b6d32 (patch) | |
tree | 561c55e24a7bc8d646ef2af5bb039b7b815bb676 /drivers/md/bcache/btree.h | |
parent | a664d0f05a2ec02c8f042db536d84d15d6e19e81 (diff) | |
download | blackbird-op-linux-c5aa4a3157b55bdca18dd2a9d9f43314470b6d32.tar.gz blackbird-op-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/btree.h')
-rw-r--r-- | drivers/md/bcache/btree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/bcache/btree.h b/drivers/md/bcache/btree.h index 91dfa5e69685..00441821f5ad 100644 --- a/drivers/md/bcache/btree.h +++ b/drivers/md/bcache/btree.h @@ -242,7 +242,8 @@ void __bch_btree_node_write(struct btree *, struct closure *); void bch_btree_node_write(struct btree *, struct closure *); void bch_btree_set_root(struct btree *); -struct btree *bch_btree_node_alloc(struct cache_set *, struct btree_op *, int); +struct btree *__bch_btree_node_alloc(struct cache_set *, struct btree_op *, + int, bool); struct btree *bch_btree_node_get(struct cache_set *, struct btree_op *, struct bkey *, int, bool); |