Re: [PATCH] Btrfs: fix crash of starting balance

2013-01-15 Thread Liu Bo
On Tue, Jan 15, 2013 at 06:59:04PM +0200, Ilya Dryomov wrote: > On Tue, Jan 15, 2013 at 10:47:57PM +0800, Liu Bo wrote: > > We will crash on BUG_ON(ret == -EEXIST) when we do not resume the existing > > balance but attempt to start a new one. > > > > The steps can be: > > 1. start balance > > 2. p

Re: [PATCH] Btrfs: fix crash of starting balance

2013-01-15 Thread Ilya Dryomov
On Tue, Jan 15, 2013 at 10:47:57PM +0800, Liu Bo wrote: > We will crash on BUG_ON(ret == -EEXIST) when we do not resume the existing > balance but attempt to start a new one. > > The steps can be: > 1. start balance > 2. pause balance > 3. start balance > > Signed-off-by: Liu Bo > --- > fs/btrf

[PATCH] Btrfs: fix crash of starting balance

2013-01-15 Thread Liu Bo
We will crash on BUG_ON(ret == -EEXIST) when we do not resume the existing balance but attempt to start a new one. The steps can be: 1. start balance 2. pause balance 3. start balance Signed-off-by: Liu Bo --- fs/btrfs/volumes.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-)