From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josef Bacik Subject: Re: kernel BUG at fs/btrfs/extent_io.c:1890! Date: Thu, 12 Apr 2012 14:20:49 -0400 Message-ID: <20120412182049.GK1924@localhost.localdomain> References: <20120411150158.GA5820@localhost.localdomain> <20120412180836.GJ1924@localhost.localdomain> <20120412181525.GU29506@shiny> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Chris Mason , Josef Bacik , Francesco Cepparo , linux-btrfs@vger.kernel.org Return-path: In-Reply-To: <20120412181525.GU29506@shiny> List-ID: On Thu, Apr 12, 2012 at 02:15:25PM -0400, Chris Mason wrote: > On Thu, Apr 12, 2012 at 02:08:37PM -0400, Josef Bacik wrote: > > On Wed, Apr 11, 2012 at 11:59:43PM +0000, Francesco Cepparo wrote: > > > I tried your patch but unfortunately the kernel still gives me the > > > same error message :( > > > > Weird, will you apply this patch on top of the one I sent you and send me the > > dmesg when it panics again? Thanks, > > > > Josef > > > > diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c > > index 2a3ddd2..51efb58 100644 > > --- a/fs/btrfs/disk-io.c > > +++ b/fs/btrfs/disk-io.c > > @@ -652,6 +652,8 @@ static int btree_io_failed_hook(struct page *page, int failed_mirror) > > > > eb = (struct extent_buffer *)page->private; > > set_bit(EXTENT_BUFFER_IOERR, &eb->bflags); > > + WARN_ON(!failed_mirror); > > + printk(KERN_ERR "io error, failed mirror %d\n"); > ^^^^^ > > , failed_mirror > pfft compiling debug patches before sending them out is for losers, Josef