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