| /Linux-v4.19/fs/lockd/ |
| D | svc4proc.c | 23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument 36 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args() 43 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) in nlm4svc_retrieve_args() 66 nlm4svc_proc_null(struct svc_rqst *rqstp) in nlm4svc_proc_null() argument 76 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_test() argument 78 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() 87 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test() 91 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test() 103 nlm4svc_proc_test(struct svc_rqst *rqstp) in nlm4svc_proc_test() argument 105 return __nlm4svc_proc_test(rqstp, rqstp->rq_resp); in nlm4svc_proc_test() [all …]
|
| D | svcproc.c | 43 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) 52 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument 65 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args() 72 error = cast_status(nlm_lookup_file(rqstp, &file, &lock->fh)); in nlmsvc_retrieve_args() 96 nlmsvc_proc_null(struct svc_rqst *rqstp) in nlmsvc_proc_null() argument 106 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_test() argument 108 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() 117 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test() 121 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test() 126 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test() [all …]
|
| D | xdr.c | 186 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_testargs() argument 188 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_testargs() 200 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_testargs() 204 nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_encode_testres() argument 206 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_encode_testres() 210 return xdr_ressize_check(rqstp, p); in nlmsvc_encode_testres() 214 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_lockargs() argument 216 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_lockargs() 231 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_lockargs() 235 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_cancargs() argument [all …]
|
| D | xdr4.c | 183 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_testargs() argument 185 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_testargs() 197 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_testargs() 201 nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_testres() argument 203 struct nlm_res *resp = rqstp->rq_resp; in nlm4svc_encode_testres() 207 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_testres() 211 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_lockargs() argument 213 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_lockargs() 228 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_lockargs() 232 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_cancargs() argument [all …]
|
| /Linux-v4.19/fs/nfsd/ |
| D | nfs3xdr.c | 165 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr3() argument 195 encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_saved_post_attr() argument 199 return encode_fattr3(rqstp, p, fhp, &fhp->fh_post_attr); in encode_saved_post_attr() 208 encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_post_op_attr() argument 219 return encode_fattr3(rqstp, p, fhp, &stat); in encode_post_op_attr() 228 nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in nfs3svc_encode_post_op_attr() argument 230 return encode_post_op_attr(rqstp, p, fhp); in nfs3svc_encode_post_op_attr() 237 encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_wcc_data() argument 250 return encode_saved_post_attr(rqstp, p, fhp); in encode_wcc_data() 254 return encode_post_op_attr(rqstp, p, fhp); in encode_wcc_data() [all …]
|
| D | nfs2acl.c | 23 nfsacld_proc_null(struct svc_rqst *rqstp) in nfsacld_proc_null() argument 31 static __be32 nfsacld_proc_getacl(struct svc_rqst *rqstp) in nfsacld_proc_getacl() argument 33 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsacld_proc_getacl() 34 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsacld_proc_getacl() 43 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 92 static __be32 nfsacld_proc_setacl(struct svc_rqst *rqstp) in nfsacld_proc_setacl() argument 94 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsacld_proc_setacl() 95 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsacld_proc_setacl() 104 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl() 146 static __be32 nfsacld_proc_getattr(struct svc_rqst *rqstp) in nfsacld_proc_getattr() argument [all …]
|
| D | nfsxdr.c | 129 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr() argument 186 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *s… in nfs2svc_encode_fattr() argument 188 return encode_fattr(rqstp, p, fhp, stat); in nfs2svc_encode_fattr() 195 nfssvc_decode_void(struct svc_rqst *rqstp, __be32 *p) in nfssvc_decode_void() argument 197 return xdr_argsize_check(rqstp, p); in nfssvc_decode_void() 201 nfssvc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p) in nfssvc_decode_fhandle() argument 203 struct nfsd_fhandle *args = rqstp->rq_argp; in nfssvc_decode_fhandle() 208 return xdr_argsize_check(rqstp, p); in nfssvc_decode_fhandle() 212 nfssvc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p) in nfssvc_decode_sattrargs() argument 214 struct nfsd_sattrargs *args = rqstp->rq_argp; in nfssvc_decode_sattrargs() [all …]
|
| D | nfs3proc.c | 35 nfsd3_proc_null(struct svc_rqst *rqstp) in nfsd3_proc_null() argument 44 nfsd3_proc_getattr(struct svc_rqst *rqstp) in nfsd3_proc_getattr() argument 46 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr() 47 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr() 54 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 68 nfsd3_proc_setattr(struct svc_rqst *rqstp) in nfsd3_proc_setattr() argument 70 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr() 71 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr() 78 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 87 nfsd3_proc_lookup(struct svc_rqst *rqstp) in nfsd3_proc_lookup() argument [all …]
|
| D | nfs3acl.c | 22 nfsd3_proc_null(struct svc_rqst *rqstp) in nfsd3_proc_null() argument 30 static __be32 nfsd3_proc_getacl(struct svc_rqst *rqstp) in nfsd3_proc_getacl() argument 32 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsd3_proc_getacl() 33 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsd3_proc_getacl() 40 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 85 static __be32 nfsd3_proc_setacl(struct svc_rqst *rqstp) in nfsd3_proc_setacl() argument 87 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsd3_proc_setacl() 88 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setacl() 95 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 128 static int nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_getaclargs() argument [all …]
|
| D | nfs4proc.c | 95 check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in check_attr_support() argument 117 nfsd4_check_open_attributes(struct svc_rqst *rqstp, in nfsd4_check_open_attributes() argument 125 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes() 128 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes() 149 do_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in do_set_nfs4_acl() argument 154 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); in do_set_nfs4_acl() 175 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument 192 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission() 224 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open… in do_open_lookup() argument 257 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup() [all …]
|
| D | nfsproc.c | 21 nfsd_proc_null(struct svc_rqst *rqstp) in nfsd_proc_null() argument 43 nfsd_proc_getattr(struct svc_rqst *rqstp) in nfsd_proc_getattr() argument 45 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr() 46 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_getattr() 51 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr() 61 nfsd_proc_setattr(struct svc_rqst *rqstp) in nfsd_proc_setattr() argument 63 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr() 64 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_setattr() 99 nfserr = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr() 116 nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); in nfsd_proc_setattr() [all …]
|
| D | nfscache.c | 67 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec); 292 nfsd_cache_csum(struct svc_rqst *rqstp) in nfsd_cache_csum() argument 297 struct xdr_buf *buf = &rqstp->rq_arg; in nfsd_cache_csum() 322 nfsd_cache_match(struct svc_rqst *rqstp, __wsum csum, struct svc_cacherep *rp) in nfsd_cache_match() argument 325 if (rqstp->rq_xid != rp->c_xid) in nfsd_cache_match() 334 if (rqstp->rq_proc != rp->c_proc || in nfsd_cache_match() 335 rqstp->rq_prot != rp->c_prot || in nfsd_cache_match() 336 rqstp->rq_vers != rp->c_vers || in nfsd_cache_match() 337 rqstp->rq_arg.len != rp->c_len || in nfsd_cache_match() 338 !rpc_cmp_addr(svc_addr(rqstp), (struct sockaddr *)&rp->c_addr) || in nfsd_cache_match() [all …]
|
| D | vfs.c | 86 nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp, in nfsd_cross_mnt() argument 105 exp2 = rqst_exp_get_by_name(rqstp, &path); in nfsd_cross_mnt() 120 if (nfsd_v4client(rqstp) || in nfsd_cross_mnt() 151 static int nfsd_lookup_parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **e… in nfsd_lookup_parent() argument 159 exp2 = rqst_exp_parent(rqstp, &path); in nfsd_lookup_parent() 200 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument 220 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry() 224 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry() 249 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { in nfsd_lookup_dentry() 277 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument [all …]
|
| D | nfssvc.c | 677 struct svc_rqst *rqstp = (struct svc_rqst *) vrqstp; in nfsd() local 678 …struct svc_xprt *perm_sock = list_entry(rqstp->rq_server->sv_permsocks.next, typeof(struct svc_xpr… in nfsd() 715 rqstp->rq_server->sv_maxconn = nn->max_connections; in nfsd() 721 while ((err = svc_recv(rqstp, 60*60*HZ)) == -EAGAIN) in nfsd() 726 svc_process(rqstp); in nfsd() 737 rqstp->rq_server = NULL; in nfsd() 740 svc_exit_thread(rqstp); in nfsd() 767 static bool nfs_request_too_big(struct svc_rqst *rqstp, in nfs_request_too_big() argument 774 if (rqstp->rq_prog != NFS_PROGRAM) in nfs_request_too_big() 780 if (rqstp->rq_vers >= 4) in nfs_request_too_big() [all …]
|
| D | nfsfh.c | 63 nfsd_mode_check(struct svc_rqst *rqstp, struct dentry *dentry, in nfsd_mode_check() argument 81 if (rqstp->rq_vers == 4 && mode == S_IFLNK) in nfsd_mode_check() 90 static bool nfsd_originating_port_ok(struct svc_rqst *rqstp, int flags) in nfsd_originating_port_ok() argument 95 if (rqstp->rq_cred.cr_flavor >= RPC_AUTH_GSS) in nfsd_originating_port_ok() 97 return test_bit(RQ_SECURE, &rqstp->rq_flags); in nfsd_originating_port_ok() 100 static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, in nfsd_setuser_and_check_port() argument 103 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port() 106 if (!nfsd_originating_port_ok(rqstp, flags)) { in nfsd_setuser_and_check_port() 109 svc_print_addr(rqstp, buf, sizeof(buf))); in nfsd_setuser_and_check_port() 114 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port() [all …]
|
| D | nfs4idmap.c | 491 idmap_lookup(struct svc_rqst *rqstp, in idmap_lookup() argument 501 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup() 514 rqst_authname(struct svc_rqst *rqstp) in rqst_authname() argument 518 clp = rqstp->rq_gssclient ? rqstp->rq_gssclient : rqstp->rq_client; in rqst_authname() 523 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument 530 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_name_to_id() 536 strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); in idmap_name_to_id() 537 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); in idmap_name_to_id() 562 struct svc_rqst *rqstp, int type, u32 id) in idmap_id_to_name() argument 570 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_id_to_name() [all …]
|
| /Linux-v4.19/net/sunrpc/ |
| D | svc.c | 564 svc_init_buffer(struct svc_rqst *rqstp, unsigned int size, int node) in svc_init_buffer() argument 569 if (svc_is_backchannel(rqstp)) in svc_init_buffer() 583 rqstp->rq_pages[arghi++] = p; in svc_init_buffer() 593 svc_release_buffer(struct svc_rqst *rqstp) in svc_release_buffer() argument 597 for (i = 0; i < ARRAY_SIZE(rqstp->rq_pages); i++) in svc_release_buffer() 598 if (rqstp->rq_pages[i]) in svc_release_buffer() 599 put_page(rqstp->rq_pages[i]); in svc_release_buffer() 605 struct svc_rqst *rqstp; in svc_rqst_alloc() local 607 rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNEL, node); in svc_rqst_alloc() 608 if (!rqstp) in svc_rqst_alloc() [all …]
|
| D | svc_xprt.c | 29 static int svc_deferred_recv(struct svc_rqst *rqstp); 310 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt) in svc_xprt_copy_addrs() argument 312 memcpy(&rqstp->rq_addr, &xprt->xpt_remote, xprt->xpt_remotelen); in svc_xprt_copy_addrs() 313 rqstp->rq_addrlen = xprt->xpt_remotelen; in svc_xprt_copy_addrs() 319 memcpy(&rqstp->rq_daddr, &xprt->xpt_local, xprt->xpt_locallen); in svc_xprt_copy_addrs() 320 rqstp->rq_daddrlen = xprt->xpt_locallen; in svc_xprt_copy_addrs() 331 char *svc_print_addr(struct svc_rqst *rqstp, char *buf, size_t len) in svc_print_addr() argument 333 return __svc_print_addr(svc_addr(rqstp), buf, len); in svc_print_addr() 345 static bool svc_xprt_reserve_slot(struct svc_rqst *rqstp, struct svc_xprt *xprt) in svc_xprt_reserve_slot() argument 347 if (!test_bit(RQ_DATA, &rqstp->rq_flags)) { in svc_xprt_reserve_slot() [all …]
|
| D | svcsock.c | 119 static void svc_release_skb(struct svc_rqst *rqstp) in svc_release_skb() argument 121 struct sk_buff *skb = rqstp->rq_xprt_ctxt; in svc_release_skb() 125 container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); in svc_release_skb() 126 rqstp->rq_xprt_ctxt = NULL; in svc_release_skb() 128 dprintk("svc: service %p, releasing skb %p\n", rqstp, skb); in svc_release_skb() 133 static void svc_release_udp_skb(struct svc_rqst *rqstp) in svc_release_udp_skb() argument 135 struct sk_buff *skb = rqstp->rq_xprt_ctxt; in svc_release_udp_skb() 138 rqstp->rq_xprt_ctxt = NULL; in svc_release_udp_skb() 140 dprintk("svc: service %p, releasing skb %p\n", rqstp, skb); in svc_release_udp_skb() 152 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data() argument [all …]
|
| D | svcauth.c | 37 svc_authenticate(struct svc_rqst *rqstp, __be32 *authp) in svc_authenticate() argument 44 flavor = svc_getnl(&rqstp->rq_arg.head[0]); in svc_authenticate() 57 rqstp->rq_auth_slack = 0; in svc_authenticate() 58 init_svc_cred(&rqstp->rq_cred); in svc_authenticate() 60 rqstp->rq_authop = aops; in svc_authenticate() 61 return aops->accept(rqstp, authp); in svc_authenticate() 65 int svc_set_client(struct svc_rqst *rqstp) in svc_set_client() argument 67 rqstp->rq_client = NULL; in svc_set_client() 68 return rqstp->rq_authop->set_client(rqstp); in svc_set_client() 76 int svc_authorise(struct svc_rqst *rqstp) in svc_authorise() argument [all …]
|
| D | svcauth_unix.c | 629 static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) in unix_gid_find() argument 634 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, in unix_gid_find() 640 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find() 656 svcauth_unix_set_client(struct svc_rqst *rqstp) in svcauth_unix_set_client() argument 662 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_set_client() 663 struct svc_xprt *xprt = rqstp->rq_xprt; in svcauth_unix_set_client() 667 switch (rqstp->rq_addr.ss_family) { in svcauth_unix_set_client() 669 sin = svc_addr_in(rqstp); in svcauth_unix_set_client() 674 sin6 = svc_addr_in6(rqstp); in svcauth_unix_set_client() 680 rqstp->rq_client = NULL; in svcauth_unix_set_client() [all …]
|
| /Linux-v4.19/net/sunrpc/xprtrdma/ |
| D | svc_rdma_recvfrom.c | 355 static void svc_rdma_build_arg_xdr(struct svc_rqst *rqstp, in svc_rdma_build_arg_xdr() argument 358 struct xdr_buf *arg = &rqstp->rq_arg; in svc_rdma_build_arg_xdr() 568 static void rdma_read_complete(struct svc_rqst *rqstp, in rdma_read_complete() argument 577 put_page(rqstp->rq_pages[page_no]); in rdma_read_complete() 578 rqstp->rq_pages[page_no] = head->rc_pages[page_no]; in rdma_read_complete() 583 rqstp->rq_arg.pages = &rqstp->rq_pages[head->rc_hdr_count]; in rdma_read_complete() 584 rqstp->rq_arg.page_len = head->rc_arg.page_len; in rdma_read_complete() 587 rqstp->rq_respages = &rqstp->rq_pages[page_no]; in rdma_read_complete() 588 rqstp->rq_next_page = rqstp->rq_respages + 1; in rdma_read_complete() 591 rqstp->rq_arg.head[0] = head->rc_arg.head[0]; in rdma_read_complete() [all …]
|
| /Linux-v4.19/net/sunrpc/auth_gss/ |
| D | svcauth_gss.c | 660 gss_verify_header(struct svc_rqst *rqstp, struct rsc *rsci, in gss_verify_header() argument 667 struct kvec *argv = &rqstp->rq_arg.head[0]; in gss_verify_header() 684 if (rqstp->rq_deferred) /* skip verification of revisited request */ in gss_verify_header() 706 gss_write_null_verf(struct svc_rqst *rqstp) in gss_write_null_verf() argument 710 svc_putnl(rqstp->rq_res.head, RPC_AUTH_NULL); in gss_write_null_verf() 711 p = rqstp->rq_res.head->iov_base + rqstp->rq_res.head->iov_len; in gss_write_null_verf() 714 if (!xdr_ressize_check(rqstp, p)) in gss_write_null_verf() 720 gss_write_verf(struct svc_rqst *rqstp, struct gss_ctx *ctx_id, u32 seq) in gss_write_verf() argument 730 svc_putnl(rqstp->rq_res.head, RPC_AUTH_GSS); in gss_write_verf() 739 p = rqstp->rq_res.head->iov_base + rqstp->rq_res.head->iov_len; in gss_write_verf() [all …]
|
| /Linux-v4.19/include/linux/sunrpc/ |
| D | svc.h | 152 extern u32 svc_max_payload(const struct svc_rqst *rqstp); 339 xdr_argsize_check(struct svc_rqst *rqstp, __be32 *p) in xdr_argsize_check() argument 342 struct kvec *vec = &rqstp->rq_arg.head[0]; in xdr_argsize_check() 348 xdr_ressize_check(struct svc_rqst *rqstp, __be32 *p) in xdr_ressize_check() argument 350 struct kvec *vec = &rqstp->rq_res.head[0]; in xdr_ressize_check() 358 static inline void svc_free_res_pages(struct svc_rqst *rqstp) in svc_free_res_pages() argument 360 while (rqstp->rq_next_page != rqstp->rq_respages) { in svc_free_res_pages() 361 struct page **pp = --rqstp->rq_next_page; in svc_free_res_pages() 495 void svc_reserve(struct svc_rqst *rqstp, int space); 498 unsigned int svc_fill_write_vector(struct svc_rqst *rqstp, [all …]
|
| /Linux-v4.19/fs/nfs/ |
| D | callback.c | 76 struct svc_rqst *rqstp = vrqstp; in nfs4_callback_svc() local 87 err = svc_recv(rqstp, MAX_SCHEDULE_TIMEOUT); in nfs4_callback_svc() 90 svc_process(rqstp); in nfs4_callback_svc() 92 svc_exit_thread(rqstp); in nfs4_callback_svc() 104 struct svc_rqst *rqstp = vrqstp; in nfs41_callback_svc() local 105 struct svc_serv *serv = rqstp->rq_server; in nfs41_callback_svc() 126 error = bc_svc_process(serv, req, rqstp); in nfs41_callback_svc() 136 svc_exit_thread(rqstp); in nfs41_callback_svc() 377 check_gss_callback_principal(struct nfs_client *clp, struct svc_rqst *rqstp) in check_gss_callback_principal() argument 379 char *p = rqstp->rq_cred.cr_principal; in check_gss_callback_principal() [all …]
|