]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Btrfs: bring back balance pause/resume logic
authorIlya Dryomov <idryomov@gmail.com>
Sun, 20 Jan 2013 13:57:57 +0000 (15:57 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 20 Jan 2013 14:21:17 +0000 (16:21 +0200)
commited0fb78fb6aa294a719f8f5654fdff0ec8bc00bc
tree27675574e1f79775a5ab03f84e27b81266be4e21
parent3972f2603d8570effaf633cea52b12c7c2773c11
Btrfs: bring back balance pause/resume logic

Balance pause/resume logic got broken by 5ac00add (went in into 3.8-rc1
as part of dev-replace merge).  Offending commit took a stab at making
mutually exclusive volume operations (add_dev, rm_dev, resize, balance,
replace_dev) not block behind volume_mutex if another such operation is
in progress and instead return an error right away.  Balancing front-end
relied on the blocking behaviour, so the fix is ugly, but short of a
complete rework, it's the best we can do.

Reported-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/ioctl.c
fs/btrfs/volumes.c