From patchwork Sun Mar 15 15:12:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6013371 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B5C83BF90F for ; Sun, 15 Mar 2015 15:12:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E2E0C2024F for ; Sun, 15 Mar 2015 15:12:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 201E1201FA for ; Sun, 15 Mar 2015 15:12:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752884AbbCOPMY (ORCPT ); Sun, 15 Mar 2015 11:12:24 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33158 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752816AbbCOPMX (ORCPT ); Sun, 15 Mar 2015 11:12:23 -0400 Received: by pagr17 with SMTP id r17so38503306pag.0 for ; Sun, 15 Mar 2015 08:12:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=7rp3SHNTibFlJziDZ1JrkABYrMFPHJBexr9u9qNbbmc=; b=FId3JBqqvCavAEgcesBYMFzu6YkibnhU3oVAC9K86j2tKPVhCtLoV+Cv8oohxSF6za dA9eDX8yeKKCikgIgNTBl4PVAEGJR9SRVBL5iSAl3bTqrUfJnM+nzt0VJO64FdckUULO TWS6r6xlZpMgxSqDGnwPEvJXAElvrL97OHqbfrpYZPn4W5HQNku4ih0gGCgdB5n+NT7O 0VPWggr1DYIsHeIFUZDiKgU5R/xSMRFZKPFf6She5moAvB47kX+LXvj0W/Zw8rfmrkJD eyui/zB+zrPrBqrdF3dY0eSPy49gbgiGsvpYF8UNIbXKmfDNCs4kyur69KKhIkEb/cvJ A0wA== X-Received: by 10.70.103.230 with SMTP id fz6mr87144117pdb.45.1426432343038; Sun, 15 Mar 2015 08:12:23 -0700 (PDT) Received: from [192.168.99.2] ([104.143.41.8]) by mx.google.com with ESMTPSA id cz10sm12818107pdb.9.2015.03.15.08.12.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Mar 2015 08:12:22 -0700 (PDT) Message-ID: <5505A14F.4090202@gmail.com> Date: Sun, 15 Mar 2015 23:12:15 +0800 From: Kinglong Mee User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "J. Bruce Fields" CC: Christoph Hellwig , Linux NFS Mailing List Subject: [PATCH] NFSD: Put exports after nfsd4_layout_verify fail Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix commit 9cf514ccfa (nfsd: implement pNFS operations). Signed-off-by: Kinglong Mee Reviewed-by: Christoph Hellwig --- fs/nfsd/nfs4proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index d30bea8..92b9d97 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1237,8 +1237,8 @@ nfsd4_getdeviceinfo(struct svc_rqst *rqstp, nfserr = ops->proc_getdeviceinfo(exp->ex_path.mnt->mnt_sb, gdp); gdp->gd_notify_types &= ops->notify_types; - exp_put(exp); out: + exp_put(exp); return nfserr; }