patch-2.4.19 linux-2.4.19/fs/lockd/svcproc.c
Next file: linux-2.4.19/fs/msdos/namei.c
Previous file: linux-2.4.19/fs/lockd/svc4proc.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/fs/lockd/svcproc.c
- Orig date:
Thu Oct 11 07:52:18 2001
diff -urN linux-2.4.18/fs/lockd/svcproc.c linux-2.4.19/fs/lockd/svcproc.c
@@ -282,6 +282,8 @@
dprintk("lockd: TEST_MSG called\n");
+ memset(&res, 0, sizeof(res));
+
if ((stat = nlmsvc_proc_test(rqstp, argp, &res)) == 0)
stat = nlmsvc_callback(rqstp, NLMPROC_TEST_RES, &res);
return stat;
@@ -474,12 +476,14 @@
/* If we run on an NFS server, delete all locks held by the client */
if (nlmsvc_ops != NULL) {
struct svc_client *clnt;
- saddr.sin_addr.s_addr = argp->addr;
+ 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)