From: Kent Overstreet Date: Mon, 3 Feb 2025 16:35:11 +0000 (-0500) Subject: bcachefs: Fix rcu imbalance in bch2_fs_btree_key_cache_exit() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3539880ef1a5f8c970d0f69a6fdcfeffc000e63d;p=users%2Fjedix%2Flinux-maple.git bcachefs: Fix rcu imbalance in bch2_fs_btree_key_cache_exit() Spotted by sparse. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/btree_key_cache.c b/fs/bcachefs/btree_key_cache.c index c378b97ebeca..1821f40c161a 100644 --- a/fs/bcachefs/btree_key_cache.c +++ b/fs/bcachefs/btree_key_cache.c @@ -748,7 +748,6 @@ void bch2_fs_btree_key_cache_exit(struct btree_key_cache *bc) rcu_read_unlock(); mutex_lock(&bc->table.mutex); mutex_unlock(&bc->table.mutex); - rcu_read_lock(); continue; } for (i = 0; i < tbl->size; i++)