]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: disallow mutually exclusive admin operations from user mode
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 5 Nov 2012 16:54:08 +0000 (17:54 +0100)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:38 +0000 (17:15 -0500)
commit75989bc842e7714d2110d153d8ad08d3fc5a0649
treea5290cc4e69c434b24c091a212d1723bae56e46c
parentd1a933c529897dda103af8c2ff10240d2e6d30f7
Btrfs: disallow mutually exclusive admin operations from user mode

Btrfs admin operations that are manually started from user mode
and that cannot be executed at the same time return -EINPROGRESS.
A common way to enter and leave this locked section is introduced
since it used to be specific to the balance operation.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/ioctl.c
fs/btrfs/volumes.c