Re: Btrfs bug with g38867a2 and a question

2011-09-23 Thread Mathieu Chouquet-Stringer
On Fri, Sep 23, 2011 at 11:34:40AM -0400, Josef Bacik wrote: > Yeah this is a different problem that's fixed upstream, so reboot into > your other newer kernel with -o clear_cache. Thanks, Ok I'm back in business now, thanks... Now I'll try to understand why my pc sometimes hangs doing write IOs

Re: Btrfs bug with g38867a2 and a question

2011-09-23 Thread Josef Bacik
On 09/23/2011 11:31 AM, Mathieu Chouquet-Stringer wrote: > On Fri, Sep 23, 2011 at 10:49:22AM -0400, Josef Bacik wrote: >> Ok I have no idea how this could happen. Can you mount -o clear_cache >> and see if it's just the cache that's bad? Thanks, > > Did that and got this (it's a never ending st

Re: Btrfs bug with g38867a2 and a question

2011-09-23 Thread Mathieu Chouquet-Stringer
On Fri, Sep 23, 2011 at 10:49:22AM -0400, Josef Bacik wrote: > Ok I have no idea how this could happen. Can you mount -o clear_cache > and see if it's just the cache that's bad? Thanks, Did that and got this (it's a never ending story, this is from a F16 alpha boot cd hence stack trace could be

Re: Btrfs bug with g38867a2 and a question

2011-09-23 Thread Josef Bacik
On 09/23/2011 08:55 AM, Mathieu Chouquet-Stringer wrote: > On Thu, Sep 22, 2011 at 10:32:13PM +0200, Mathieu Chouquet-Stringer wrote: >> On Thu, Sep 22, 2011 at 09:30:07PM +0200, Mathieu Chouquet-Stringer wrote: >>> On Thu, Sep 22, 2011 at 03:00:03PM -0400, Josef Bacik wrote: Oh wow sorry I se

Re: Btrfs bug with g38867a2 and a question

2011-09-23 Thread Mathieu Chouquet-Stringer
On Thu, Sep 22, 2011 at 10:32:13PM +0200, Mathieu Chouquet-Stringer wrote: > On Thu, Sep 22, 2011 at 09:30:07PM +0200, Mathieu Chouquet-Stringer wrote: > > On Thu, Sep 22, 2011 at 03:00:03PM -0400, Josef Bacik wrote: > > > Oh wow sorry I sent you the completely wrong patch, I wish I had caught > >

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread Mathieu Chouquet-Stringer
On Thu, Sep 22, 2011 at 09:30:07PM +0200, Mathieu Chouquet-Stringer wrote: > On Thu, Sep 22, 2011 at 03:00:03PM -0400, Josef Bacik wrote: > > Oh wow sorry I sent you the completely wrong patch, I wish I had caught > > your reply earlier. Can you run with this patch, which is the one I > > meant to

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread Mathieu Chouquet-Stringer
On Thu, Sep 22, 2011 at 03:00:03PM -0400, Josef Bacik wrote: > Oh wow sorry I sent you the completely wrong patch, I wish I had caught > your reply earlier. Can you run with this patch, which is the one I > meant to give you :). Thanks, No worries, I've applied your patch (seems your thunderbird

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread Josef Bacik
On 09/22/2011 02:22 PM, Mathieu Chouquet-Stringer wrote: > On Thu, Sep 22, 2011 at 10:12:12AM -0400, Josef Bacik wrote: >> Well that is from the tree logging code, so give this a whirl. It's >> going to dump a lot of info so make sure you capture everything before >> the --- cut here --- line. Th

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread Mathieu Chouquet-Stringer
On Thu, Sep 22, 2011 at 10:12:12AM -0400, Josef Bacik wrote: > Well that is from the tree logging code, so give this a whirl. It's > going to dump a lot of info so make sure you capture everything before > the --- cut here --- line. Thanks, Here's the output of this patch: http://mathieu.csetco

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread Mathieu Chouquet-Stringer
On Thu, Sep 22, 2011 at 10:12:12AM -0400, Josef Bacik wrote: > Well that is from the tree logging code, so give this a whirl. It's > going to dump a lot of info so make sure you capture everything before > the --- cut here --- line. Thanks, The patch doesn't apply cleanly to the latest git (sinc

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread Josef Bacik
On 09/22/2011 02:05 AM, Mathieu Chouquet-Stringer wrote: > > On Sep 22, 2011 1:11 AM, "David Sterba" > wrote: >> >> On Wed, Sep 21, 2011 at 04:18:29PM -0400, Josef Bacik wrote: >> > diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c >> > index b128fa0..66ba0a7 100644 >> > ---

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread Mathieu Chouquet-Stringer
On Thu, Sep 22, 2011 at 01:05:28PM +0200, David Sterba wrote: > On Thu, Sep 22, 2011 at 12:13:44PM +0200, Mathieu Chouquet-Stringer wrote: > > On Thu, Sep 22, 2011 at 01:10:55AM +0200, David Sterba wrote: > > > please prefix printk messages with "btrfs: " > > > > Well my computer crashed before I

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread David Sterba
On Thu, Sep 22, 2011 at 12:13:44PM +0200, Mathieu Chouquet-Stringer wrote: > On Thu, Sep 22, 2011 at 01:10:55AM +0200, David Sterba wrote: > > please prefix printk messages with "btrfs: " > > Well my computer crashed before I could reboot with the newly compiled > kernel. And now it bugs while it

Re: Btrfs bug with g38867a2 and a question

2011-09-22 Thread Mathieu Chouquet-Stringer
On Thu, Sep 22, 2011 at 01:10:55AM +0200, David Sterba wrote: > please prefix printk messages with "btrfs: " Well my computer crashed before I could reboot with the newly compiled kernel. And now it bugs while it tries to mount the kernel meaning my computer is fscked! :-) Bug at fs/btrfs/free-s

Re: Btrfs bug with g38867a2 and a question

2011-09-21 Thread David Sterba
On Wed, Sep 21, 2011 at 04:18:29PM -0400, Josef Bacik wrote: > diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c > index b128fa0..66ba0a7 100644 > --- a/fs/btrfs/inode.c > +++ b/fs/btrfs/inode.c > @@ -782,7 +782,12 @@ static noinline int cow_file_range(struct inode *inode, > struct extent_map_

Re: Btrfs bug with g38867a2 and a question

2011-09-21 Thread Mathieu Chouquet-Stringer
On Wed, Sep 21, 2011 at 04:18:29PM -0400, Josef Bacik wrote: > Yup, can you apply this patch and reproduce? It will print out some > debug info before the --- cut here --- line, which is what I need. Thanks, Compiling right now. That said, I had the same exact trace under rc6-00067-gf1fcd9f (ri

Re: Btrfs bug with g38867a2 and a question

2011-09-21 Thread Josef Bacik
On 09/21/2011 02:53 PM, Mathieu Chouquet-Stringer wrote: > Hello all, > > I've been using BTRFS for quite some time on this laptop and I just > recompiled the latest kernel from git (3.1.0-rc6-00247-g38867a2). After > a couple minutes, I hit this bug twice (this a hand written transcript, >

Btrfs bug with g38867a2 and a question

2011-09-21 Thread Mathieu Chouquet-Stringer
Hello all, I've been using BTRFS for quite some time on this laptop and I just recompiled the latest kernel from git (3.1.0-rc6-00247-g38867a2). After a couple minutes, I hit this bug twice (this a hand written transcript, pics here [1]) kernel BUG at fs/btrfs/inode.c:785! stack being: