Lines Matching defs:resp
94 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp)
103 resp->cookie = argp->cookie;
106 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
107 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
111 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie);
112 if (resp->status == nlm_drop_reply)
115 dprintk("lockd: TEST4 status %d\n", ntohl(resp->status));
130 __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp)
139 resp->cookie = argp->cookie;
142 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
143 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
153 resp->status = nlm_lck_denied_nolocks;
158 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
161 if (resp->status == nlm_drop_reply)
164 dprintk("lockd: LOCK status %d\n", ntohl(resp->status));
179 __nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp)
187 resp->cookie = argp->cookie;
191 resp->status = nlm_lck_denied_grace_period;
196 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
197 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
200 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock);
202 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status));
219 __nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp)
227 resp->cookie = argp->cookie;
231 resp->status = nlm_lck_denied_grace_period;
236 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
237 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
240 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock);
242 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status));
260 __nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp)
264 resp->cookie = argp->cookie;
267 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
268 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status));
368 struct nlm_res *resp = rqstp->rq_resp;
374 resp->cookie = argp->cookie;
378 resp->status = nlm_lck_denied_grace_period;
383 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
384 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
387 resp->status = nlmsvc_share_file(host, file, argp);
389 dprintk("lockd: SHARE status %d\n", ntohl(resp->status));
403 struct nlm_res *resp = rqstp->rq_resp;
409 resp->cookie = argp->cookie;
413 resp->status = nlm_lck_denied_grace_period;
418 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
419 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
422 resp->status = nlmsvc_unshare_file(host, file, argp);
424 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status));