]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita614ad798b999c6a6e0a08d4758bc3a8fef2de43
tree1862fab3bad6c96d34b341bc0d10952e86b393f1
parent672eaae8ce9d80a09c9516271122f301853c2b3b
Btrfs: allow running defrag in parallel to administrative tasks

Commit 75989bc8 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