patch-2.2.19 linux/fs/lockd/clntlock.c
Next file: linux/fs/lockd/clntproc.c
Previous file: linux/fs/isofs/util.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Sun Mar 25 11:37:38 2001
- Orig file:
v2.2.18/fs/lockd/clntlock.c
- Orig date:
Sun Mar 25 11:28:33 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/fs/lockd/clntlock.c linux/fs/lockd/clntlock.c
@@ -138,18 +138,15 @@
void
nlmclnt_recovery(struct nlm_host *host, u32 newstate)
{
- if (!host->h_reclaiming++) {
+ if (host->h_reclaiming++) {
if (host->h_nsmstate == newstate)
return;
printk(KERN_WARNING
"lockd: Uh-oh! Interfering reclaims for host %s",
host->h_name);
- host->h_monitored = 0;
host->h_nsmstate = newstate;
host->h_state++;
- nlm_release_host(host);
} else {
- host->h_monitored = 0;
host->h_nsmstate = newstate;
host->h_state++;
nlm_get_host(host);
@@ -168,7 +165,11 @@
/* This one ensures that our parent doesn't terminate while the
* reclaim is in progress */
lock_kernel();
+ daemonize();
+
lockd_up();
+
+ exit_files(current);
/* First, reclaim all locks that have been granted previously. */
do {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)