Lines Matching full:resp
106 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_test() argument
114 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
117 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
118 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_test()
121 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
122 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_test()
126 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test()
140 __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_lock() argument
149 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
152 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
153 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_lock()
163 resp->status = nlm_lck_denied_nolocks; in __nlmsvc_proc_lock()
168 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
171 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_lock()
174 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_lock()
188 __nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_cancel() argument
197 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
201 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_cancel()
206 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
207 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_cancel()
210 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
212 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); in __nlmsvc_proc_cancel()
228 __nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_unlock() argument
237 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
241 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_unlock()
246 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
247 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_unlock()
250 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
252 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_unlock()
269 __nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_granted() argument
273 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
276 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
277 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); in __nlmsvc_proc_granted()
389 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_proc_share() local
395 resp->cookie = argp->cookie; in nlmsvc_proc_share()
399 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_share()
404 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
405 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_share()
408 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
410 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_share()
423 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_proc_unshare() local
429 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
433 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_unshare()
438 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
439 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_unshare()
442 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
444 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_unshare()