mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 07:04:44 +00:00
bcachefs: Drop unnecessary rcu_read_lock()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
fdfab313b6
commit
fb975d14b7
1 changed files with 0 additions and 6 deletions
|
@ -675,10 +675,7 @@ struct btree *bch2_btree_node_get(struct bch_fs *c, struct btree_iter *iter,
|
|||
EBUG_ON(!btree_node_locked(iter, level + 1));
|
||||
EBUG_ON(level >= BTREE_MAX_DEPTH);
|
||||
retry:
|
||||
rcu_read_lock();
|
||||
b = btree_cache_find(bc, k);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (unlikely(!b)) {
|
||||
/*
|
||||
* We must have the parent locked to call bch2_btree_node_fill(),
|
||||
|
@ -879,10 +876,7 @@ void bch2_btree_node_prefetch(struct bch_fs *c, struct btree_iter *iter,
|
|||
BUG_ON(!btree_node_locked(iter, level + 1));
|
||||
BUG_ON(level >= BTREE_MAX_DEPTH);
|
||||
|
||||
rcu_read_lock();
|
||||
b = btree_cache_find(bc, k);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (b)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue