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-Tag: v6.14-rc2~25^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3539880ef1a5f8c970d0f69a6fdcfeffc000e63d;p=thirdparty%2Fkernel%2Flinux.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 c378b97ebeca7..1821f40c161a1 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++)