RPC: Remove unnecessary reference counting in gss downcall code. Signed-off-by: Trond Myklebust --- auth_gss.c | 3 --- 1 files changed, 3 deletions(-) Index: linux-2.6.11-rc3/net/sunrpc/auth_gss/auth_gss.c =================================================================== --- linux-2.6.11-rc3.orig/net/sunrpc/auth_gss/auth_gss.c +++ linux-2.6.11-rc3/net/sunrpc/auth_gss/auth_gss.c @@ -469,7 +469,6 @@ gss_pipe_downcall(struct file *filp, con goto out; } clnt = rpci->private; - atomic_inc(&clnt->cl_users); auth = clnt->cl_auth; gss_auth = container_of(auth, struct gss_auth, rpc_auth); mech = gss_auth->mech; @@ -493,14 +492,12 @@ gss_pipe_downcall(struct file *filp, con gss_release_msg(gss_msg); } else spin_unlock(&gss_auth->lock); - rpc_release_client(clnt); kfree(obj.data); dprintk("RPC: gss_pipe_downcall returning length %Zu\n", mlen); return mlen; err: if (ctx) gss_destroy_ctx(ctx); - rpc_release_client(clnt); out: kfree(obj.data); dprintk("RPC: gss_pipe_downcall returning %d\n", err);