# Re: \[PATCH\] btrfs: fix unbalanced unlock in qgroup\_account\_snapshot()

- From: David Sterba \<hidden\>
- Date: 2021-06-21 16:22:09 
- List: stable
- Page: https://ratatoskr.run/stable/2021/06/6880311
- Thread: https://ratatoskr.run/linux-btrfs/2021/06/6880249/t.md

```text
On Mon, Jun 21, 2021 at 10:21:14AM +0900, Naohiro Aota wrote:
> qgroup_account_snapshot() is trying to unlock the not taken
> tree_log_mutex in a error path. Since ret != 0 in this case, we can
> just return from here.
> 
> Fixes: 2a4d84c11a87 ("btrfs: move delayed ref flushing for qgroup into qgroup helper")
> Cc: stable <redacted> # 5.12
> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>

Added to misc-next, thanks.
```
