patch-2.4.19 linux-2.4.19/fs/lockd/svc4proc.c
Next file: linux-2.4.19/fs/lockd/svcproc.c
Previous file: linux-2.4.19/fs/jffs2/zlib.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/fs/lockd/svc4proc.c
- Orig date:
Mon Oct 1 13:45:47 2001
diff -urN linux-2.4.18/fs/lockd/svc4proc.c linux-2.4.19/fs/lockd/svc4proc.c
@@ -254,6 +254,8 @@
dprintk("lockd: TEST_MSG called\n");
+ memset(&res, 0, sizeof(res));
+
if ((stat = nlm4svc_proc_test(rqstp, argp, &res)) == 0)
stat = nlm4svc_callback(rqstp, NLMPROC_TEST_RES, &res);
return stat;
@@ -447,11 +449,13 @@
if (nlmsvc_ops != NULL) {
struct svc_client *clnt;
saddr.sin_addr.s_addr = argp->addr;
+ nlmsvc_ops->exp_readlock();
if ((clnt = nlmsvc_ops->exp_getclient(&saddr)) != NULL
&& (host = nlm_lookup_host(clnt, &saddr, 0, 0)) != NULL) {
nlmsvc_free_host_resources(host);
}
nlm_release_host(host);
+ nlmsvc_ops->exp_unlock();
}
return rpc_success;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)