From patchwork Mon Mar 25 20:14:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 2333491 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 04E5DDF24C for ; Mon, 25 Mar 2013 20:14:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933134Ab3CYUOa (ORCPT ); Mon, 25 Mar 2013 16:14:30 -0400 Received: from dkim2.fusionio.com ([66.114.96.54]:55627 "EHLO dkim2.fusionio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932801Ab3CYUO3 (ORCPT ); Mon, 25 Mar 2013 16:14:29 -0400 Received: from mx2.fusionio.com (unknown [10.101.1.160]) by dkim2.fusionio.com (Postfix) with ESMTP id 50F9D9A068E for ; Mon, 25 Mar 2013 14:14:29 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fusionio.com; s=default; t=1364242469; bh=hK+RyMMV9GfNE9VeosE8Zq5mBiBfbJLcqD/TdP2FoVc=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=BcGsrIdgVQejjtlSgdAL/TVMp1pwmUfPsCkn7bH4PUDut/W2DgFLv4k+dV39Mt2/H aMvdpw1NqeAEp+INKlFGG87S+38wq1tCqcJ0d1vff2uVGmcFsfeCpN/EzqnVAzbzdc bCktvLbRJM8fu+p3Yw5X4YPLu/BGmC1fX5iSY9X4= X-ASG-Debug-ID: 1364242468-0421b5172b28ef0001-6jHSXT Received: from mail1.int.fusionio.com (mail1.int.fusionio.com [10.101.1.21]) by mx2.fusionio.com with ESMTP id SCUyqINHioJJZyfD (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO); Mon, 25 Mar 2013 14:14:28 -0600 (MDT) X-Barracuda-Envelope-From: JBacik@fusionio.com Received: from localhost (98.26.82.158) by mail.fusionio.com (10.101.1.19) with Microsoft SMTP Server (TLS) id 8.3.83.0; Mon, 25 Mar 2013 14:14:28 -0600 Date: Mon, 25 Mar 2013 16:14:26 -0400 From: Josef Bacik To: Stefan Priebe CC: Josef Bacik , Chris Mason , "linux-btrfs@vger.kernel.org" Subject: Re: No space left on device (28) Message-ID: <20130325201426.GG1955@localhost.localdomain> X-ASG-Orig-Subj: Re: No space left on device (28) References: <20130321190249.30044.79438@localhost.localdomain> <514B62A4.1030201@profihost.ag> <5F36F35C-39BE-4244-B8FB-A80EC2B06D48@profihost.ag> <514C4A8C.90607@profihost.ag> <20130322135322.GB1955@localhost.localdomain> <514C6319.7030400@profihost.ag> <20130322155453.GD1955@localhost.localdomain> <514CAC8D.7010409@profihost.ag> <20130322204932.GE1955@localhost.localdomain> <514CC52B.1000201@profihost.ag> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <514CC52B.1000201@profihost.ag> User-Agent: Mutt/1.5.21 (2011-07-01) X-Barracuda-Connect: mail1.int.fusionio.com[10.101.1.21] X-Barracuda-Start-Time: 1364242468 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: http://10.101.1.181:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at fusionio.com X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.126225 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Fri, Mar 22, 2013 at 02:55:07PM -0600, Stefan Priebe wrote: > Hi Jsoef, > > thanks! Ok I don't think the thing I just fixed will make any difference for you so here's another debug patch, just apply it on top of what I've already sent you and re-run and give me the dmesg again. Thanks, Josef diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index aabaea6..bf6433f 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -4162,7 +4162,11 @@ out: } if (flushing) { if (ret == -ENOSPC) { - printk(KERN_ERR "returning enospc, dumping space info\n"); + spin_lock(&block_rsv->lock); + printk(KERN_ERR "returning enospc, space_info %u, size %Lu reserved %Lu, " + "flush %d, flush_state %d dumping space info\n", block_rsv->type, + block_rsv->size, block_rsv->reserved, flush, flush_state); + spin_unlock(&block_rsv->lock); dump_space_info(space_info, 0, 0); }