Btrfs: fix sleep with spinlock held during unmount
authorChris Mason <chris.mason@oracle.com>
Wed, 24 Sep 2008 16:50:10 +0000 (12:50 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 19:41:59 +0000 (15:41 -0400)
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: Chris Mason <chris.mason@oracle.com>

No differences found