/kernel/linux/linux-5.10/net/sunrpc/ |
D | svc.c | 565 svc_init_buffer(struct svc_rqst *rqstp, unsigned int size, int node) in svc_init_buffer() argument 570 if (svc_is_backchannel(rqstp)) in svc_init_buffer() 584 rqstp->rq_pages[arghi++] = p; in svc_init_buffer() 594 svc_release_buffer(struct svc_rqst *rqstp) in svc_release_buffer() argument 598 for (i = 0; i < ARRAY_SIZE(rqstp->rq_pages); i++) in svc_release_buffer() 599 if (rqstp->rq_pages[i]) in svc_release_buffer() 600 put_page(rqstp->rq_pages[i]); in svc_release_buffer() 606 struct svc_rqst *rqstp; in svc_rqst_alloc() local 608 rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNEL, node); in svc_rqst_alloc() 609 if (!rqstp) in svc_rqst_alloc() [all …]
|
D | svc_xprt.c | 30 static int svc_deferred_recv(struct svc_rqst *rqstp); 325 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt) in svc_xprt_copy_addrs() argument 327 memcpy(&rqstp->rq_addr, &xprt->xpt_remote, xprt->xpt_remotelen); in svc_xprt_copy_addrs() 328 rqstp->rq_addrlen = xprt->xpt_remotelen; in svc_xprt_copy_addrs() 334 memcpy(&rqstp->rq_daddr, &xprt->xpt_local, xprt->xpt_locallen); in svc_xprt_copy_addrs() 335 rqstp->rq_daddrlen = xprt->xpt_locallen; in svc_xprt_copy_addrs() 346 char *svc_print_addr(struct svc_rqst *rqstp, char *buf, size_t len) in svc_print_addr() argument 348 return __svc_print_addr(svc_addr(rqstp), buf, len); in svc_print_addr() 360 static bool svc_xprt_reserve_slot(struct svc_rqst *rqstp, struct svc_xprt *xprt) in svc_xprt_reserve_slot() argument 362 if (!test_bit(RQ_DATA, &rqstp->rq_flags)) { in svc_xprt_reserve_slot() [all …]
|
D | svcsock.c | 118 static void svc_tcp_release_rqst(struct svc_rqst *rqstp) in svc_tcp_release_rqst() argument 120 struct sk_buff *skb = rqstp->rq_xprt_ctxt; in svc_tcp_release_rqst() 124 container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); in svc_tcp_release_rqst() 126 rqstp->rq_xprt_ctxt = NULL; in svc_tcp_release_rqst() 136 static void svc_udp_release_rqst(struct svc_rqst *rqstp) in svc_udp_release_rqst() argument 138 struct sk_buff *skb = rqstp->rq_xprt_ctxt; in svc_udp_release_rqst() 141 rqstp->rq_xprt_ctxt = NULL; in svc_udp_release_rqst() 153 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data() argument 156 container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); in svc_set_cmsg_data() 165 svc_daddr_in(rqstp)->sin_addr.s_addr; in svc_set_cmsg_data() [all …]
|
D | svcauth.c | 62 svc_authenticate(struct svc_rqst *rqstp, __be32 *authp) in svc_authenticate() argument 69 flavor = svc_getnl(&rqstp->rq_arg.head[0]); in svc_authenticate() 79 rqstp->rq_auth_slack = 0; in svc_authenticate() 80 init_svc_cred(&rqstp->rq_cred); in svc_authenticate() 82 rqstp->rq_authop = aops; in svc_authenticate() 83 return aops->accept(rqstp, authp); in svc_authenticate() 87 int svc_set_client(struct svc_rqst *rqstp) in svc_set_client() argument 89 rqstp->rq_client = NULL; in svc_set_client() 90 return rqstp->rq_authop->set_client(rqstp); in svc_set_client() 98 int svc_authorise(struct svc_rqst *rqstp) in svc_authorise() argument [all …]
|
D | svcauth_unix.c | 640 static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) in unix_gid_find() argument 645 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, in unix_gid_find() 651 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find() 667 svcauth_unix_set_client(struct svc_rqst *rqstp) in svcauth_unix_set_client() argument 673 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_set_client() 674 struct svc_xprt *xprt = rqstp->rq_xprt; in svcauth_unix_set_client() 678 switch (rqstp->rq_addr.ss_family) { in svcauth_unix_set_client() 680 sin = svc_addr_in(rqstp); in svcauth_unix_set_client() 685 sin6 = svc_addr_in6(rqstp); in svcauth_unix_set_client() 691 rqstp->rq_client = NULL; in svcauth_unix_set_client() [all …]
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | nfsxdr.c | 129 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr() argument 132 struct user_namespace *userns = nfsd_user_namespace(rqstp); in encode_fattr() 187 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *s… in nfs2svc_encode_fattr() argument 189 return encode_fattr(rqstp, p, fhp, stat); in nfs2svc_encode_fattr() 196 nfssvc_decode_void(struct svc_rqst *rqstp, __be32 *p) in nfssvc_decode_void() argument 198 return xdr_argsize_check(rqstp, p); in nfssvc_decode_void() 202 nfssvc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p) in nfssvc_decode_fhandle() argument 204 struct nfsd_fhandle *args = rqstp->rq_argp; in nfssvc_decode_fhandle() 209 return xdr_argsize_check(rqstp, p); in nfssvc_decode_fhandle() 213 nfssvc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p) in nfssvc_decode_sattrargs() argument [all …]
|
D | nfs3xdr.c | 166 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr3() argument 169 struct user_namespace *userns = nfsd_user_namespace(rqstp); in encode_fattr3() 193 encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_saved_post_attr() argument 197 return encode_fattr3(rqstp, p, fhp, &fhp->fh_post_attr); in encode_saved_post_attr() 206 encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_post_op_attr() argument 217 return encode_fattr3(rqstp, p, fhp, &stat); in encode_post_op_attr() 226 nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in nfs3svc_encode_post_op_attr() argument 228 return encode_post_op_attr(rqstp, p, fhp); in nfs3svc_encode_post_op_attr() 235 encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_wcc_data() argument 248 return encode_saved_post_attr(rqstp, p, fhp); in encode_wcc_data() [all …]
|
D | nfs2acl.c | 22 nfsacld_proc_null(struct svc_rqst *rqstp) in nfsacld_proc_null() argument 30 static __be32 nfsacld_proc_getacl(struct svc_rqst *rqstp) in nfsacld_proc_getacl() argument 32 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsacld_proc_getacl() 33 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsacld_proc_getacl() 41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 93 static __be32 nfsacld_proc_setacl(struct svc_rqst *rqstp) in nfsacld_proc_setacl() argument 95 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsacld_proc_setacl() 96 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsacld_proc_setacl() 104 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl() 147 static __be32 nfsacld_proc_getattr(struct svc_rqst *rqstp) in nfsacld_proc_getattr() argument [all …]
|
D | nfs3proc.c | 33 nfsd3_proc_null(struct svc_rqst *rqstp) in nfsd3_proc_null() argument 42 nfsd3_proc_getattr(struct svc_rqst *rqstp) in nfsd3_proc_getattr() argument 44 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr() 45 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr() 51 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 65 nfsd3_proc_setattr(struct svc_rqst *rqstp) in nfsd3_proc_setattr() argument 67 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr() 68 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr() 74 resp->status = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 83 nfsd3_proc_lookup(struct svc_rqst *rqstp) in nfsd3_proc_lookup() argument [all …]
|
D | nfs3acl.c | 20 nfsd3_proc_null(struct svc_rqst *rqstp) in nfsd3_proc_null() argument 28 static __be32 nfsd3_proc_getacl(struct svc_rqst *rqstp) in nfsd3_proc_getacl() argument 30 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsd3_proc_getacl() 31 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsd3_proc_getacl() 37 resp->status = 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() 94 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 127 static int nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_getaclargs() argument [all …]
|
D | nfsproc.c | 17 nfsd_proc_null(struct svc_rqst *rqstp) in nfsd_proc_null() argument 27 nfsd_proc_getattr(struct svc_rqst *rqstp) in nfsd_proc_getattr() argument 29 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr() 30 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_getattr() 35 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr() 49 nfsd_proc_setattr(struct svc_rqst *rqstp) in nfsd_proc_setattr() argument 51 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr() 52 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_setattr() 86 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr() 103 resp->status = nfsd_setattr(rqstp, fhp, iap, 0, (time64_t)0); in nfsd_proc_setattr() [all …]
|
D | nfs4proc.c | 98 check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in check_attr_support() argument 120 nfsd4_check_open_attributes(struct svc_rqst *rqstp, in nfsd4_check_open_attributes() argument 128 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes() 131 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes() 152 do_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in do_set_nfs4_acl() argument 157 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); in do_set_nfs4_acl() 178 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument 195 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission() 227 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open… in do_open_lookup() argument 260 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup() [all …]
|
D | vfs.c | 59 nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp, in nfsd_cross_mnt() argument 78 exp2 = rqst_exp_get_by_name(rqstp, &path); in nfsd_cross_mnt() 93 if (nfsd_v4client(rqstp) || in nfsd_cross_mnt() 124 static int nfsd_lookup_parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **e… in nfsd_lookup_parent() argument 132 exp2 = rqst_exp_parent(rqstp, &path); in nfsd_lookup_parent() 173 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument 193 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry() 197 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry() 222 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { in nfsd_lookup_dentry() 250 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument [all …]
|
D | nfscache.c | 40 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec); 94 nfsd_reply_cache_alloc(struct svc_rqst *rqstp, __wsum csum, in nfsd_reply_cache_alloc() argument 107 rp->c_key.k_xid = rqstp->rq_xid; in nfsd_reply_cache_alloc() 108 rp->c_key.k_proc = rqstp->rq_proc; in nfsd_reply_cache_alloc() 109 rpc_copy_addr((struct sockaddr *)&rp->c_key.k_addr, svc_addr(rqstp)); in nfsd_reply_cache_alloc() 110 rpc_set_port((struct sockaddr *)&rp->c_key.k_addr, rpc_get_port(svc_addr(rqstp))); in nfsd_reply_cache_alloc() 111 rp->c_key.k_prot = rqstp->rq_prot; in nfsd_reply_cache_alloc() 112 rp->c_key.k_vers = rqstp->rq_vers; in nfsd_reply_cache_alloc() 113 rp->c_key.k_len = rqstp->rq_arg.len; in nfsd_reply_cache_alloc() 292 nfsd_cache_csum(struct svc_rqst *rqstp) in nfsd_cache_csum() argument [all …]
|
D | nfs4idmap.c | 506 idmap_lookup(struct svc_rqst *rqstp, in idmap_lookup() argument 516 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup() 529 rqst_authname(struct svc_rqst *rqstp) in rqst_authname() argument 533 clp = rqstp->rq_gssclient ? rqstp->rq_gssclient : rqstp->rq_client; in rqst_authname() 538 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument 545 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_name_to_id() 551 strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); in idmap_name_to_id() 552 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); in idmap_name_to_id() 577 struct svc_rqst *rqstp, int type, u32 id) in idmap_id_to_name() argument 585 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_id_to_name() [all …]
|
D | nfssvc.c | 842 nfsd_acl_init_request(struct svc_rqst *rqstp, in nfsd_acl_init_request() argument 846 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd_acl_init_request() 849 if (likely(nfsd_support_acl_version(rqstp->rq_vers) && in nfsd_acl_init_request() 850 nfsd_vers(nn, rqstp->rq_vers, NFSD_TEST))) in nfsd_acl_init_request() 851 return svc_generic_init_request(rqstp, progp, ret); in nfsd_acl_init_request() 855 if (nfsd_support_acl_version(rqstp->rq_vers) && in nfsd_acl_init_request() 865 if (nfsd_support_acl_version(rqstp->rq_vers) && in nfsd_acl_init_request() 887 nfsd_init_request(struct svc_rqst *rqstp, in nfsd_init_request() argument 891 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd_init_request() 894 if (likely(nfsd_vers(nn, rqstp->rq_vers, NFSD_TEST))) in nfsd_init_request() [all …]
|
D | nfsfh.c | 64 nfsd_mode_check(struct svc_rqst *rqstp, struct dentry *dentry, in nfsd_mode_check() argument 82 if (rqstp->rq_vers == 4 && mode == S_IFLNK) in nfsd_mode_check() 91 static bool nfsd_originating_port_ok(struct svc_rqst *rqstp, int flags) in nfsd_originating_port_ok() argument 96 if (rqstp->rq_cred.cr_flavor >= RPC_AUTH_GSS) in nfsd_originating_port_ok() 98 return test_bit(RQ_SECURE, &rqstp->rq_flags); in nfsd_originating_port_ok() 101 static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, in nfsd_setuser_and_check_port() argument 104 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port() 107 if (!nfsd_originating_port_ok(rqstp, flags)) { in nfsd_setuser_and_check_port() 110 svc_print_addr(rqstp, buf, sizeof(buf))); in nfsd_setuser_and_check_port() 115 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port() [all …]
|
/kernel/linux/linux-5.10/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() 72 nlm4svc_proc_null(struct svc_rqst *rqstp) in nlm4svc_proc_null() argument 82 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_test() argument 84 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() 93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test() 97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test() 110 nlm4svc_proc_test(struct svc_rqst *rqstp) in nlm4svc_proc_test() argument 112 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() 102 nlmsvc_proc_null(struct svc_rqst *rqstp) in nlmsvc_proc_null() argument 112 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_test() argument 114 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() 123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test() 127 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test() 132 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test() [all …]
|
D | xdr4.c | 181 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_testargs() argument 183 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_testargs() 195 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_testargs() 199 nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_encode_testres() argument 201 struct nlm_res *resp = rqstp->rq_resp; in nlm4svc_encode_testres() 205 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_testres() 209 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_lockargs() argument 211 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_lockargs() 226 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_lockargs() 230 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) in nlm4svc_decode_cancargs() argument [all …]
|
D | xdr.c | 184 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_testargs() argument 186 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_testargs() 198 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_testargs() 202 nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_encode_testres() argument 204 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_encode_testres() 208 return xdr_ressize_check(rqstp, p); in nlmsvc_encode_testres() 212 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_lockargs() argument 214 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_lockargs() 229 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_lockargs() 233 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) in nlmsvc_decode_cancargs() argument [all …]
|
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/ |
D | svc_rdma_recvfrom.c | 243 void svc_rdma_release_rqst(struct svc_rqst *rqstp) in svc_rdma_release_rqst() argument 245 struct svc_rdma_recv_ctxt *ctxt = rqstp->rq_xprt_ctxt; in svc_rdma_release_rqst() 246 struct svc_xprt *xprt = rqstp->rq_xprt; in svc_rdma_release_rqst() 250 rqstp->rq_xprt_ctxt = NULL; in svc_rdma_release_rqst() 373 static void svc_rdma_build_arg_xdr(struct svc_rqst *rqstp, in svc_rdma_build_arg_xdr() argument 376 struct xdr_buf *arg = &rqstp->rq_arg; in svc_rdma_build_arg_xdr() 692 static void rdma_read_complete(struct svc_rqst *rqstp, in rdma_read_complete() argument 701 put_page(rqstp->rq_pages[page_no]); in rdma_read_complete() 702 rqstp->rq_pages[page_no] = head->rc_pages[page_no]; in rdma_read_complete() 707 rqstp->rq_arg.pages = &rqstp->rq_pages[head->rc_hdr_count]; in rdma_read_complete() [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | rpcgss.h | 175 const struct svc_rqst *rqstp, 179 TP_ARGS(rqstp, maj_stat), 184 __string(addr, rqstp->rq_xprt->xpt_remotebuf) 188 __entry->xid = __be32_to_cpu(rqstp->rq_xid); 190 __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf); 202 const struct svc_rqst *rqstp, \ 205 TP_ARGS(rqstp, maj_stat)) 212 const struct svc_rqst *rqstp 215 TP_ARGS(rqstp), 219 __string(addr, rqstp->rq_xprt->xpt_remotebuf) [all …]
|
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
D | svcauth_gss.c | 629 static bool gss_check_seq_num(const struct svc_rqst *rqstp, struct rsc *rsci, in gss_check_seq_num() argument 659 trace_rpcgss_svc_seqno_low(rqstp, seq_num, in gss_check_seq_num() 664 trace_rpcgss_svc_seqno_seen(rqstp, seq_num); in gss_check_seq_num() 713 gss_verify_header(struct svc_rqst *rqstp, struct rsc *rsci, in gss_verify_header() argument 720 struct kvec *argv = &rqstp->rq_arg.head[0]; in gss_verify_header() 737 if (rqstp->rq_deferred) /* skip verification of revisited request */ in gss_verify_header() 745 trace_rpcgss_svc_seqno_large(rqstp, gc->gc_seq); in gss_verify_header() 749 if (!gss_check_seq_num(rqstp, rsci, gc->gc_seq)) in gss_verify_header() 755 gss_write_null_verf(struct svc_rqst *rqstp) in gss_write_null_verf() argument 759 svc_putnl(rqstp->rq_res.head, RPC_AUTH_NULL); in gss_write_null_verf() [all …]
|
/kernel/linux/linux-5.10/include/linux/sunrpc/ |
D | svc.h | 152 extern u32 svc_max_payload(const struct svc_rqst *rqstp); 345 xdr_argsize_check(struct svc_rqst *rqstp, __be32 *p) in xdr_argsize_check() argument 348 struct kvec *vec = &rqstp->rq_arg.head[0]; in xdr_argsize_check() 354 xdr_ressize_check(struct svc_rqst *rqstp, __be32 *p) in xdr_ressize_check() argument 356 struct kvec *vec = &rqstp->rq_res.head[0]; in xdr_ressize_check() 364 static inline void svc_free_res_pages(struct svc_rqst *rqstp) in svc_free_res_pages() argument 366 while (rqstp->rq_next_page != rqstp->rq_respages) { in svc_free_res_pages() 367 struct page **pp = --rqstp->rq_next_page; in svc_free_res_pages() 519 void svc_reserve(struct svc_rqst *rqstp, int space); 522 int svc_encode_read_payload(struct svc_rqst *rqstp, [all …]
|