Btrfs: allow running defrag in parallel to administrative tasks
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 4 Mar 2013 17:28:38 +0000 (17:28 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 4 Mar 2013 21:33:24 +0000 (16:33 -0500)
commit9b53157aac7366cea413ee29b629f83225829e87
tree1862fab3bad6c96d34b341bc0d10952e86b393f1
parent66b6135b7cf741f6f44ba938b27583ea3b83bd12
Btrfs: allow running defrag in parallel to administrative tasks

Commit 5ac00add added a testnset mutex and code that disallows
running administrative tasks in parallel. It is prevented that
the device add/delete/balance/replace/resize operations are
started in parallel. By mistake, the defragmentation operation
was included in the check for mutually exclusiveness as well.
This is fixed with this commit.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ioctl.c