Lines Matching defs:resp
115 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp)
124 resp->cookie = argp->cookie;
127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
128 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
133 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie));
134 if (resp->status == nlm_drop_reply)
138 ntohl(resp->status), rqstp->rq_vers);
153 __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp)
162 resp->cookie = argp->cookie;
165 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
166 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
176 resp->status = nlm_lck_denied_nolocks;
181 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
184 if (resp->status == nlm_drop_reply)
187 dprintk("lockd: LOCK status %d\n", ntohl(resp->status));
202 __nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp)
211 resp->cookie = argp->cookie;
215 resp->status = nlm_lck_denied_grace_period;
220 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
221 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
224 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock));
226 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status));
243 __nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp)
252 resp->cookie = argp->cookie;
256 resp->status = nlm_lck_denied_grace_period;
261 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
262 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
265 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock));
267 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status));
285 __nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp)
289 resp->cookie = argp->cookie;
292 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
293 dprintk("lockd: GRANTED 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 = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
419 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
422 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
424 dprintk("lockd: SHARE status %d\n", ntohl(resp->status));
438 struct nlm_res *resp = rqstp->rq_resp;
444 resp->cookie = argp->cookie;
448 resp->status = nlm_lck_denied_grace_period;
453 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
454 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
457 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
459 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status));