From patchwork Thu Apr 7 16:20:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 692921 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p37GLJ0j003658 for ; Thu, 7 Apr 2011 16:23:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754001Ab1DGQX5 (ORCPT ); Thu, 7 Apr 2011 12:23:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46700 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751606Ab1DGQX4 (ORCPT ); Thu, 7 Apr 2011 12:23:56 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p37GNm4f030516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Apr 2011 12:23:49 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p37GNlhN001485; Thu, 7 Apr 2011 12:23:47 -0400 Received: from localhost.localdomain (vpn-10-144.rdu.redhat.com [10.11.10.144]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p37GNjFu028962; Thu, 7 Apr 2011 12:23:46 -0400 Message-ID: <4D9DE43F.3000809@redhat.com> Date: Thu, 07 Apr 2011 12:20:15 -0400 From: Josef Bacik User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-1.fc15 Thunderbird/3.1.9 MIME-Version: 1.0 To: cpwu@tnsoft.com.cn CC: ceph-devel , linux-btrfs@vger.kernel.org Subject: Re: 2.6.39-rc1: btrfs "WARNING: at fs/btrfs/inode.c:2177" References: <1302169286.1922.19.camel@cephhost> In-Reply-To: <1302169286.1922.19.camel@cephhost> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 07 Apr 2011 16:23:58 +0000 (UTC) On 04/07/2011 05:41 AM, Jeff Wu wrote: > Hi , > I run iozone stress test on a ceph client for x86_64, ceph 0.26 + > linux-2.6.39-rc1 server, > printk "WARNING: at fs/btrfs/inode.c:2177" > Crap I was hoping I had fixed this, could you run with this debug patch and get me the output so I can figure out what's going on? Thanks, Josef diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index f619c3c..79ec933 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -3696,6 +3696,7 @@ int btrfs_block_rsv_add(struct btrfs_trans_handle *trans, { int ret; + WARN_ON(block_rsv == root->orphan_block_rsv); if (num_bytes == 0) return 0;