From patchwork Thu Jan 14 19:37:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Mason X-Patchwork-Id: 72926 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0EJcll2024697 for ; Thu, 14 Jan 2010 19:38:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757533Ab0ANTiW (ORCPT ); Thu, 14 Jan 2010 14:38:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757520Ab0ANTiW (ORCPT ); Thu, 14 Jan 2010 14:38:22 -0500 Received: from acsinet11.oracle.com ([141.146.126.233]:30624 "EHLO acsinet11.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756591Ab0ANTiV (ORCPT ); Thu, 14 Jan 2010 14:38:21 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o0EJcFvd012251 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 14 Jan 2010 19:38:16 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o0EJbOvT006193; Thu, 14 Jan 2010 19:38:11 GMT Received: from abhmt017.oracle.com by acsmt356.oracle.com with ESMTP id 1333802431263497830; Thu, 14 Jan 2010 11:37:10 -0800 Received: from localhost (/66.66.148.185) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Jan 2010 11:37:10 -0800 Date: Thu, 14 Jan 2010 14:37:08 -0500 From: Chris Mason To: Johannes Hirte Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [btrfs] kernel BUG at include/linux/spinlock.h:376! Message-ID: <20100114193708.GD23810@think> Mail-Followup-To: Chris Mason , Johannes Hirte , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <201001072229.33976.johannes.hirte@fem.tu-ilmenau.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201001072229.33976.johannes.hirte@fem.tu-ilmenau.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4B4F72A6.01B1:SCFMA4539814,ss=1,fgs=0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 3bfe9f0..1148aa0 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -572,6 +572,7 @@ again: key.objectid = inode->i_ino; key.type = BTRFS_EXTENT_DATA_KEY; key.offset = split; + path->keep_locks = 1; ret = btrfs_search_slot(trans, root, &key, path, -1, 1); if (ret > 0 && path->slots[0] > 0)