From patchwork Tue Mar 1 16:08:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel J Blueman X-Patchwork-Id: 599781 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 p21G8QNr019918 for ; Tue, 1 Mar 2011 16:08:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756435Ab1CAQII (ORCPT ); Tue, 1 Mar 2011 11:08:08 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:64261 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753079Ab1CAQIH (ORCPT ); Tue, 1 Mar 2011 11:08:07 -0500 Received: by iyb26 with SMTP id 26so4023849iyb.19 for ; Tue, 01 Mar 2011 08:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=3gweOBcvw7TqkteyqgGCDL5gdVJTRbdSStSPUAkThas=; b=mQG+uRe2RyMwMzfvTiDU+EOJgJIgtjUONCxTpj66sjiZEfqgIxGJ2qOLfXAMfhDWc8 2Zy1HVdVPAVK+dDKunPE3PEpCV+fCvoKwHa5FZY0ysMw7aQvThUiYO3bK6nZ8R4/NQoW +SKxVdLwN9JQxNwmt9Z4Jj2IGnzRShH7dHxVU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=eQGoLrFEOPrHWgq/jzFhv8dKzls7IyAR9tlmmcXJuFWwoj0UT1QjevIZa8Ru50A/CF RtjOzg/vp84czOFJeSUuRSvTJ+lCZahiSXRw2mXMtXx95jM7028G5PbWBDotmdBAO5kN RKPtS5Q6jvI0hhWvW4WKuANJqoNPHIwaPSqA0= MIME-Version: 1.0 Received: by 10.42.220.69 with SMTP id hx5mr6958757icb.73.1298995686047; Tue, 01 Mar 2011 08:08:06 -0800 (PST) Received: by 10.231.139.156 with HTTP; Tue, 1 Mar 2011 08:08:06 -0800 (PST) Date: Wed, 2 Mar 2011 00:08:06 +0800 Message-ID: Subject: [2.6.38-rc6, patch] fix delayed_refs locking on error path... From: Daniel J Blueman To: Linux BTRFS Cc: Linux Kernel , Chris Mason , Josef Bacik Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@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]); Tue, 01 Mar 2011 16:08:36 +0000 (UTC) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index e1aa8d6..c48d699 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2787,6 +2787,7 @@ static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, spin_lock(&delayed_refs->lock); if (delayed_refs->num_entries == 0) { printk(KERN_INFO "delayed_refs has NO entry\n"); + spin_unlock(&delayed_refs->lock); return ret; }