diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-09-11 06:07:35 +0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 09:56:38 +0400 |
commit | bc9389eefe479b7b7b323c2729b61a7155d2d0ea (patch) | |
tree | 81a55eccc4e09c9ade6e9ef6132970e02eca8c68 /drivers/md/bcache/btree.h | |
parent | a1f0358b2bf69be216cb6e4ea40fe7ae4d38b8a6 (diff) | |
download | linux-bc9389eefe479b7b7b323c2729b61a7155d2d0ea.tar.xz |
bcache: Avoid deadlocking in garbage collection
Not a complete fix - we could still deadlock if btree_insert_node() has
to split...
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/btree.h')
-rw-r--r-- | drivers/md/bcache/btree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/btree.h b/drivers/md/bcache/btree.h index b5a46affe8eb..767e75570896 100644 --- a/drivers/md/bcache/btree.h +++ b/drivers/md/bcache/btree.h @@ -271,7 +271,7 @@ void bch_btree_node_read(struct btree *); 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 *, int); +struct btree *bch_btree_node_alloc(struct cache_set *, int, bool); struct btree *bch_btree_node_get(struct cache_set *, struct bkey *, int, bool); int bch_btree_insert_check_key(struct btree *, struct btree_op *, |