Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4434c33c authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: fix sleep with spinlock held during unmount



The code to free block groups needs to drop the space info spin lock
before calling btrfs_remove_free_space_cache (which can schedule).

This is safe because at unmount time, nobody else is going to play
with the block groups.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 2b1f55b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment