From patchwork Sun Mar 20 11:22:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 646681 X-Patchwork-Delegate: Trond.Myklebust@netapp.com 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 p2KBMRv4011526 for ; Sun, 20 Mar 2011 11:22:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752045Ab1CTLWZ (ORCPT ); Sun, 20 Mar 2011 07:22:25 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:34570 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752044Ab1CTLWY (ORCPT ); Sun, 20 Mar 2011 07:22:24 -0400 Received: by fxm17 with SMTP id 17so4792284fxm.19 for ; Sun, 20 Mar 2011 04:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=5duspa3eDesG4ReCDzI/cc9ZEqfRdeUc0Q6VQQdrBPg=; b=V6z3A2NTlg4GkSYTv/gEn2/z/qOsHfGAOBPCIo/TG/vgET2tgGf3pUY28jjVgXqNoR /t2LuLrbiFzp+k/dde80VMQMuX4Kj65I/NieJ4oWBhVPpbu3AA1tH5YC1Alg5B8BDcWS SzP/Rg1Wb7JNRtnBsFmvD2r5Z0RHo2QRhf584= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=kHBZsv8OQQIQet+dabZLQiqfYyZrgMb1PLfydrg2NGSjsQGgjt/hv/RPHHPTT9GjGV x4lMaVokx5sYEMuY2KSiL+cDOBA894QiGHArZMBsrsBBoPpk3PgcoQ1G+6wcj78a79EQ P9UWL2kClAx2LJIXLfFEF5GBz/08oeDUyKH8Q= Received: by 10.223.73.198 with SMTP id r6mr3502530faj.109.1300620143553; Sun, 20 Mar 2011 04:22:23 -0700 (PDT) Received: from bicker ([212.49.88.34]) by mx.google.com with ESMTPS id n9sm1360409fax.27.2011.03.20.04.22.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Mar 2011 04:22:22 -0700 (PDT) Date: Sun, 20 Mar 2011 14:22:07 +0300 From: Dan Carpenter To: Trond Myklebust Cc: linux-nfs@vger.kernel.org, viro@zeniv.linux.org.uk, kernel-janitors@vger.kernel.org Subject: [patch] nfs: lock() vs unlock() typo Message-ID: <20110320112207.GM2008@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@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]); Sun, 20 Mar 2011 11:22:27 +0000 (UTC) diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index c0b8344..bf1c680 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c @@ -98,7 +98,7 @@ rename_retry: namelen--; buflen -= namelen; if (buflen < 0) { - spin_lock(&dentry->d_lock); + spin_unlock(&dentry->d_lock); rcu_read_unlock(); goto Elong; } @@ -108,7 +108,7 @@ rename_retry: rcu_read_unlock(); return end; Elong_unlock: - spin_lock(&dentry->d_lock); + spin_unlock(&dentry->d_lock); rcu_read_unlock(); if (read_seqretry(&rename_lock, seq)) goto rename_retry;