Lines Matching defs:rqstp

842 nfsd_acl_init_request(struct svc_rqst *rqstp,
846 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id);
849 if (likely(nfsd_support_acl_version(rqstp->rq_vers) &&
850 nfsd_vers(nn, rqstp->rq_vers, NFSD_TEST)))
851 return svc_generic_init_request(rqstp, progp, ret);
855 if (nfsd_support_acl_version(rqstp->rq_vers) &&
865 if (nfsd_support_acl_version(rqstp->rq_vers) &&
887 nfsd_init_request(struct svc_rqst *rqstp,
891 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id);
894 if (likely(nfsd_vers(nn, rqstp->rq_vers, NFSD_TEST)))
895 return svc_generic_init_request(rqstp, progp, ret);
922 struct svc_rqst *rqstp = (struct svc_rqst *) vrqstp;
923 struct svc_xprt *perm_sock = list_entry(rqstp->rq_server->sv_permsocks.next, typeof(struct svc_xprt), xpt_list);
960 rqstp->rq_server->sv_maxconn = nn->max_connections;
966 while ((err = svc_recv(rqstp, 60*60*HZ)) == -EAGAIN)
971 svc_process(rqstp);
982 rqstp->rq_server = NULL;
985 svc_exit_thread(rqstp);
1003 static bool nfs_request_too_big(struct svc_rqst *rqstp,
1010 if (rqstp->rq_prog != NFS_PROGRAM)
1016 if (rqstp->rq_vers >= 4)
1023 return rqstp->rq_arg.len > PAGE_SIZE;
1028 * @rqstp: incoming request
1035 * %1: Processing complete; send Reply in rqstp->rq_res
1037 int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp)
1039 const struct svc_procedure *proc = rqstp->rq_procinfo;
1040 struct kvec *argv = &rqstp->rq_arg.head[0];
1041 struct kvec *resv = &rqstp->rq_res.head[0];
1045 rqstp->rq_vers, rqstp->rq_proc);
1047 if (nfs_request_too_big(rqstp, proc))
1054 rqstp->rq_cachetype = proc->pc_cachetype;
1055 if (!proc->pc_decode(rqstp, argv->iov_base))
1058 switch (nfsd_cache_lookup(rqstp)) {
1074 *statp = proc->pc_func(rqstp);
1075 if (*statp == rpc_drop_reply || test_bit(RQ_DROPME, &rqstp->rq_flags))
1078 if (!proc->pc_encode(rqstp, p))
1081 nfsd_cache_update(rqstp, rqstp->rq_cachetype, statp + 1);
1086 dprintk("nfsd: NFSv%d argument too large\n", rqstp->rq_vers);
1097 nfsd_cache_update(rqstp, RC_NOCACHE, NULL);
1103 nfsd_cache_update(rqstp, RC_NOCACHE, NULL);