Lines Matching refs:rqstp
1489 static struct nfsd4_conn *alloc_conn(struct svc_rqst *rqstp, u32 flags) in alloc_conn() argument
1496 svc_xprt_get(rqstp->rq_xprt); in alloc_conn()
1497 conn->cn_xprt = rqstp->rq_xprt; in alloc_conn()
1524 static void nfsd4_init_conn(struct svc_rqst *rqstp, struct nfsd4_conn *conn, struct nfsd4_session *… in nfsd4_init_conn() argument
1537 static struct nfsd4_conn *alloc_conn_from_crses(struct svc_rqst *rqstp, struct nfsd4_create_session… in alloc_conn_from_crses() argument
1543 return alloc_conn(rqstp, dir); in alloc_conn_from_crses()
1579 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp… in init_session() argument
1582 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in init_session()
1601 struct sockaddr *sa = svc_addr(rqstp); in init_session()
1950 static bool svc_rqst_integrity_protected(struct svc_rqst *rqstp) in svc_rqst_integrity_protected() argument
1952 struct svc_cred *cr = &rqstp->rq_cred; in svc_rqst_integrity_protected()
1962 static bool mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp) in mach_creds_match() argument
1964 struct svc_cred *cr = &rqstp->rq_cred; in mach_creds_match()
1970 if (!svc_rqst_integrity_protected(rqstp)) in mach_creds_match()
2026 struct svc_rqst *rqstp, nfs4_verifier *verf) in create_client() argument
2029 struct sockaddr *sa = svc_addr(rqstp); in create_client()
2031 struct net *net = SVC_NET(rqstp); in create_client()
2037 ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); in create_client()
2178 gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, struct svc_rqst *rqstp) in gen_callback() argument
2181 struct sockaddr *sa = svc_addr(rqstp); in gen_callback()
2208 memcpy(&conn->cb_saddr, &rqstp->rq_daddr, rqstp->rq_daddrlen); in gen_callback()
2289 status = nfsd4_enc_sequence_replay(resp->rqstp->rq_argp, resp); in nfsd4_replay_cache_entry()
2346 nfsd4_exchange_id(struct svc_rqst *rqstp, in nfsd4_exchange_id() argument
2355 struct sockaddr *sa = svc_addr(rqstp); in nfsd4_exchange_id()
2357 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_exchange_id()
2362 __func__, rqstp, exid, exid->clname.len, exid->clname.data, in nfsd4_exchange_id()
2370 if (!svc_rqst_integrity_protected(rqstp)) in nfsd4_exchange_id()
2380 new = create_client(exid->clname, rqstp, &verf); in nfsd4_exchange_id()
2388 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
2396 if (!mach_creds_match(conf, rqstp)) { in nfsd4_exchange_id()
2604 nfsd4_create_session(struct svc_rqst *rqstp, in nfsd4_create_session() argument
2608 struct sockaddr *sa = svc_addr(rqstp); in nfsd4_create_session()
2615 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_create_session()
2632 conn = alloc_conn_from_crses(rqstp, cr_ses); in nfsd4_create_session()
2643 if (!mach_creds_match(conf, rqstp)) in nfsd4_create_session()
2653 if (!same_creds(&unconf->cl_cred, &rqstp->rq_cred) || in nfsd4_create_session()
2659 if (!mach_creds_match(unconf, rqstp)) in nfsd4_create_session()
2689 init_session(rqstp, new, conf, cr_ses); in nfsd4_create_session()
2701 nfsd4_init_conn(rqstp, conn, new); in nfsd4_create_session()
2732 __be32 nfsd4_backchannel_ctl(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nf… in nfsd4_backchannel_ctl() argument
2735 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_backchannel_ctl()
2751 __be32 nfsd4_bind_conn_to_session(struct svc_rqst *rqstp, in nfsd4_bind_conn_to_session() argument
2758 struct net *net = SVC_NET(rqstp); in nfsd4_bind_conn_to_session()
2761 if (!nfsd4_last_compound_op(rqstp)) in nfsd4_bind_conn_to_session()
2769 if (!mach_creds_match(session->se_client, rqstp)) in nfsd4_bind_conn_to_session()
2774 conn = alloc_conn(rqstp, bcts->dir); in nfsd4_bind_conn_to_session()
2778 nfsd4_init_conn(rqstp, conn, session); in nfsd4_bind_conn_to_session()
2875 static bool nfsd4_session_too_many_ops(struct svc_rqst *rqstp, struct nfsd4_session *session) in nfsd4_session_too_many_ops() argument
2877 struct nfsd4_compoundargs *args = rqstp->rq_argp; in nfsd4_session_too_many_ops()
2882 static bool nfsd4_request_too_big(struct svc_rqst *rqstp, in nfsd4_request_too_big() argument
2885 struct xdr_buf *xb = &rqstp->rq_arg; in nfsd4_request_too_big()
2891 nfsd4_sequence(struct svc_rqst *rqstp, in nfsd4_sequence() argument
2895 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_sequence()
2903 struct net *net = SVC_NET(rqstp); in nfsd4_sequence()
2913 conn = alloc_conn(rqstp, NFS4_CDFC4_FORE); in nfsd4_sequence()
2924 if (nfsd4_session_too_many_ops(rqstp, session)) in nfsd4_sequence()
2928 if (nfsd4_request_too_big(rqstp, session)) in nfsd4_sequence()
2971 if (xdr_restrict_buflen(xdr, buflen - rqstp->rq_auth_slack)) in nfsd4_sequence()
2973 svc_reserve(rqstp, buflen); in nfsd4_sequence()
3028 nfsd4_destroy_clientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_de… in nfsd4_destroy_clientid() argument
3033 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_destroy_clientid()
3055 if (!mach_creds_match(clp, rqstp)) { in nfsd4_destroy_clientid()
3069 nfsd4_reclaim_complete(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_re… in nfsd4_reclaim_complete() argument
3106 nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_setclientid() argument
3114 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_setclientid()
3116 new = create_client(clname, rqstp, &clverifier); in nfsd4_setclientid()
3127 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid()
3146 gen_callback(new, setclid, rqstp); in nfsd4_setclientid()
3164 nfsd4_setclientid_confirm(struct svc_rqst *rqstp, in nfsd4_setclientid_confirm() argument
3173 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_setclientid_confirm()
3189 if (unconf && !same_creds(&unconf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3191 if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3900 nfsd4_truncate(struct svc_rqst *rqstp, struct svc_fh *fh, in nfsd4_truncate() argument
3911 return nfsd_setattr(rqstp, fh, &iattr, 0, (time_t)0); in nfsd4_truncate()
3914 static __be32 nfs4_get_vfs_file(struct svc_rqst *rqstp, struct nfs4_file *fp, in nfs4_get_vfs_file() argument
3954 status = nfsd_open(rqstp, cur_fh, S_IFREG, access, &filp); in nfs4_get_vfs_file()
3967 status = nfsd4_truncate(rqstp, cur_fh, open); in nfs4_get_vfs_file()
3980 nfs4_upgrade_open(struct svc_rqst *rqstp, struct nfs4_file *fp, struct svc_fh *cur_fh, struct nfs4_… in nfs4_upgrade_open() argument
3986 return nfs4_get_vfs_file(rqstp, fp, cur_fh, stp, open); in nfs4_upgrade_open()
4001 status = nfsd4_truncate(rqstp, cur_fh, open); in nfs4_upgrade_open()
4267 nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) in nfsd4_process_open2() argument
4269 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_process_open2()
4304 status = nfs4_upgrade_open(rqstp, fp, current_fh, stp, open); in nfsd4_process_open2()
4317 status = nfs4_upgrade_open(rqstp, fp, current_fh, in nfsd4_process_open2()
4326 status = nfs4_get_vfs_file(rqstp, fp, current_fh, stp, open); in nfsd4_process_open2()
4403 nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_renew() argument
4408 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_renew()
4766 nfs4_check_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfs4_stid *s, in nfs4_check_file() argument
4775 status = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfs4_check_file()
4784 status = nfsd_open(rqstp, fhp, S_IFREG, acc, filpp); in nfs4_check_file()
4799 nfs4_preprocess_stateid_op(struct svc_rqst *rqstp, in nfs4_preprocess_stateid_op() argument
4805 struct net *net = SVC_NET(rqstp); in nfs4_preprocess_stateid_op()
4851 status = nfs4_check_file(rqstp, fhp, s, filpp, tmp_file, flags); in nfs4_preprocess_stateid_op()
4862 nfsd4_test_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_test_stateid() argument
4876 nfsd4_free_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_free_stateid() argument
5015 nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_open_confirm() argument
5021 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_open_confirm()
5026 status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0); in nfsd4_open_confirm()
5083 nfsd4_open_downgrade(struct svc_rqst *rqstp, in nfsd4_open_downgrade() argument
5089 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_open_downgrade()
5153 nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_close() argument
5158 struct net *net = SVC_NET(rqstp); in nfsd4_close()
5183 nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_delegreturn() argument
5190 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_delegreturn()
5192 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) in nfsd4_delegreturn()
5518 nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lock() argument
5533 struct net *net = SVC_NET(rqstp); in nfsd4_lock()
5543 if ((status = fh_verify(rqstp, &cstate->current_fh, in nfsd4_lock()
5707 static __be32 nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock) in nfsd_test_lock() argument
5710 __be32 err = nfsd_open(rqstp, fhp, S_IFREG, NFSD_MAY_READ, &file); in nfsd_test_lock()
5722 nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lockt() argument
5728 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_lockt()
5730 if (locks_in_grace(SVC_NET(rqstp))) in nfsd4_lockt()
5742 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) in nfsd4_lockt()
5778 status = nfsd_test_lock(rqstp, &cstate->current_fh, file_lock); in nfsd4_lockt()
5795 nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_locku() argument
5803 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_locku()
5901 nfsd4_release_lockowner(struct svc_rqst *rqstp, in nfsd4_release_lockowner() argument
5912 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_release_lockowner()