patch-2.4.22 linux-2.4.22/fs/lockd/svc4proc.c
Next file: linux-2.4.22/fs/lockd/svclock.c
Previous file: linux-2.4.22/fs/lockd/mon.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/fs/lockd/svc4proc.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.21/fs/lockd/svc4proc.c linux-2.4.22/fs/lockd/svc4proc.c
@@ -462,6 +462,24 @@
}
/*
+ * client sent a GRANTED_RES, let's remove the associated block
+ */
+static int
+nlm4svc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp,
+ void *resp)
+{
+ if (!nlmsvc_ops)
+ return rpc_success;
+
+ dprintk("lockd: GRANTED_RES called\n");
+
+ nlmsvc_grant_reply(&argp->cookie, argp->status);
+ return rpc_success;
+}
+
+
+
+/*
* This is the generic lockd callback for async RPC calls
*/
static u32
@@ -524,7 +542,6 @@
#define nlm4svc_proc_lock_res nlm4svc_proc_null
#define nlm4svc_proc_cancel_res nlm4svc_proc_null
#define nlm4svc_proc_unlock_res nlm4svc_proc_null
-#define nlm4svc_proc_granted_res nlm4svc_proc_null
struct nlm_void { int dummy; };
@@ -559,7 +576,7 @@
PROC(lock_res, lockres, norep, res, void, 1),
PROC(cancel_res, cancelres, norep, res, void, 1),
PROC(unlock_res, unlockres, norep, res, void, 1),
- PROC(granted_res, grantedres, norep, res, void, 1),
+ PROC(granted_res, res, norep, res, void, 1),
/* statd callback */
PROC(sm_notify, reboot, void, reboot, void, 1),
PROC(none, void, void, void, void, 0),
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)