diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-09-11 04:07:35 +0200 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 06:56:38 +0100 |
commit | bc9389eefe479b7b7b323c2729b61a7155d2d0ea (patch) | |
tree | 81a55eccc4e09c9ade6e9ef6132970e02eca8c68 /drivers/md/bcache/super.c | |
parent | bcache: Incremental gc (diff) | |
download | linux-bc9389eefe479b7b7b323c2729b61a7155d2d0ea.tar.xz linux-bc9389eefe479b7b7b323c2729b61a7155d2d0ea.zip |
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/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 7ab926d94d81..e21200e98da6 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1601,7 +1601,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, 0); + c->root = bch_btree_node_alloc(c, 0, true); if (IS_ERR_OR_NULL(c->root)) goto err; |