On Fri, Apr 13, 2018 at 01:30:22PM +0800, Anand Jain wrote:
>
>
> > @@ -4569,8 +4560,10 @@ static long btrfs_ioctl_balance(struct file *file,
> > void __user *arg)
> > /* this is either (2) or (3) */
> > if (!atomic_read(&fs_info->balance_running)) {
> >
@@ -4569,8 +4560,10 @@ static long btrfs_ioctl_balance(struct file *file, void
__user *arg)
/* this is either (2) or (3) */
if (!atomic_read(&fs_info->balance_running)) {
mutex_unlock(&fs_info->balance_mutex);
- if (
On 04/04/2018 02:34 AM, David Sterba wrote:
Mutual exclusion of device add/rm and balance was done by the volume
mutex up to version 3.7. The commit 5ac00addc7ac091109 ("Btrfs: disallow
mutually exclusive admin operations from user mode") added a bit that
essentially tracked the same informatio