summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-10-21 06:05:22 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-01-18 21:40:43 -0900
commit95bcf050797e9b41782b62d4fb41b107c42df422 (patch)
treeba44530695d9dd4f4cd5701e70448f82f91e61d5
parent1767467f0268264813659087f10a4dfaebd13d81 (diff)
bcache: delete some duplicated code
bch_btree_node_fill() does the unlock
-rw-r--r--drivers/md/bcache/btree_cache.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/md/bcache/btree_cache.c b/drivers/md/bcache/btree_cache.c
index 60fb08f8b280..fbd209081ffd 100644
--- a/drivers/md/bcache/btree_cache.c
+++ b/drivers/md/bcache/btree_cache.c
@@ -642,13 +642,6 @@ retry:
BUG_ON(PTR_ERR(b) != -EAGAIN);
return b;
}
-
- /*
- * But we still have to drop read locks before we return, for
- * deadlock avoidance:
- */
- if (btree_node_read_locked(iter, level + 1))
- btree_node_unlock(iter, level + 1);
} else {
/*
* There's a potential deadlock with splits and insertions into