patch-2.4.21 linux-2.4.21/fs/lockd/svc.c
Next file: linux-2.4.21/fs/locks.c
Previous file: linux-2.4.21/fs/jfs/super.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
2003-06-13 07:51:37.000000000 -0700
- Orig file:
linux-2.4.20/fs/lockd/svc.c
- Orig date:
2001-10-21 10:32:33.000000000 -0700
diff -urN linux-2.4.20/fs/lockd/svc.c linux-2.4.21/fs/lockd/svc.c
@@ -72,11 +72,6 @@
return grace_period + jiffies;
}
-static inline void clear_grace_period(void)
-{
- nlmsvc_grace_period = 0;
-}
-
/*
* This is the lockd kernel thread
*/
@@ -142,10 +137,8 @@
* (Theoretically, there shouldn't even be blocked locks
* during grace period).
*/
- if (!nlmsvc_grace_period) {
+ if (!nlmsvc_grace_period)
timeout = nlmsvc_retry_blocked();
- } else if (time_before(grace_period_expire, jiffies))
- clear_grace_period();
/*
* Find a socket with data available and call its
@@ -175,6 +168,9 @@
nlmsvc_ops->exp_getclient(&rqstp->rq_addr);
}
+ if (nlmsvc_grace_period &&
+ time_before(grace_period_expire, jiffies))
+ nlmsvc_grace_period = 0;
svc_process(serv, rqstp);
/* Unlock export hash tables */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)