Re: [PATCH -next] fs/btrfs: Fix unlocking in btrfs_ref_tree_mod

From: Johannes Thumshirn
Date: Fri May 15 2020 - 05:03:33 EST


On 15/05/2020 04:17, Bo YU wrote:
> It adds spin_lock() in add_block_entry() but out path does not unlock
> it.

Which call path doesn't unlock it? There is an out_unlock label with a
spin_unlock() right above your insert. So either coverity messed something
up or the call path that needs the unlock has to jump to out_unlock instead
of out.