From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487AbWDCFXg (ORCPT ); Mon, 3 Apr 2006 01:23:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964852AbWDCFVF (ORCPT ); Mon, 3 Apr 2006 01:21:05 -0400 Received: from ns2.suse.de ([195.135.220.15]:43676 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S964851AbWDCFU6 (ORCPT ); Mon, 3 Apr 2006 01:20:58 -0400 From: NeilBrown To: Andrew Morton Date: Mon, 3 Apr 2006 15:19:10 +1000 Message-Id: <1060403051910.1881@suse.de> X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Some obvious cleanup. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown ### Diffstat output ./fs/nfsd/nfs4callback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff ./fs/nfsd/nfs4callback.c~current~ ./fs/nfsd/nfs4callback.c --- ./fs/nfsd/nfs4callback.c~current~ 2006-04-03 15:12:16.000000000 +1000 +++ ./fs/nfsd/nfs4callback.c 2006-04-03 15:12:16.000000000 +1000 @@ -441,8 +441,9 @@ nfsd4_probe_callback(struct nfs4_client goto out_clnt; } - /* the task holds a reference to the nfs4_client struct */ cb->cb_client = clnt; + + /* the task holds a reference to the nfs4_client struct */ atomic_inc(&clp->cl_count); msg.rpc_cred = nfsd4_lookupcred(clp,0); @@ -460,13 +461,12 @@ nfsd4_probe_callback(struct nfs4_client out_rpciod: atomic_dec(&clp->cl_count); rpciod_down(); + cb->cb_client = NULL; out_clnt: rpc_shutdown_client(clnt); - goto out_err; out_err: dprintk("NFSD: warning: no callback path to client %.*s\n", (int)clp->cl_name.len, clp->cl_name.data); - cb->cb_client = NULL; } static void