mbox series

[v3,0/3] Support adding a device during paused balance

Message ID 20211125091443.762092-1-nborisov@suse.com (mailing list archive)
Headers show
Series Support adding a device during paused balance | expand

Message

Nikolay Borisov Nov. 25, 2021, 9:14 a.m. UTC
So here's v3 which takes care of the feedback received in the last round, namely:

 - Introduced btrfs_exclop_balance which is used to switch the balance state,
 alongside ASSERTS
 - Removed unused variable in balance_kthread

Nikolay Borisov (3):
  btrfs: introduce BTRFS_EXCLOP_BALANCE_PAUSED exclusive state
  btrfs: make device add compatible with paused balance in
    btrfs_exclop_start_try_lock
  btrfs: allow device add if balance is paused

 fs/btrfs/ctree.h   |  4 ++++
 fs/btrfs/ioctl.c   | 49 ++++++++++++++++++++++++++++++++++++++++++----
 fs/btrfs/volumes.c | 10 ++++++++--
 3 files changed, 57 insertions(+), 6 deletions(-)

--
2.25.1

Comments

David Sterba Nov. 25, 2021, 3:43 p.m. UTC | #1
On Thu, Nov 25, 2021 at 11:14:40AM +0200, Nikolay Borisov wrote:
> 
> So here's v3 which takes care of the feedback received in the last round, namely:
> 
>  - Introduced btrfs_exclop_balance which is used to switch the balance state,
>  alongside ASSERTS
>  - Removed unused variable in balance_kthread
> 
> Nikolay Borisov (3):
>   btrfs: introduce BTRFS_EXCLOP_BALANCE_PAUSED exclusive state
>   btrfs: make device add compatible with paused balance in
>     btrfs_exclop_start_try_lock
>   btrfs: allow device add if balance is paused

With the minor message fixup added to misc-next, thanks.