Lines Matching refs:rqstp
1710 static struct nfsd4_conn *alloc_conn(struct svc_rqst *rqstp, u32 flags) in alloc_conn() argument
1717 svc_xprt_get(rqstp->rq_xprt); in alloc_conn()
1718 conn->cn_xprt = rqstp->rq_xprt; in alloc_conn()
1745 static void nfsd4_init_conn(struct svc_rqst *rqstp, struct nfsd4_conn *conn, struct nfsd4_session *… in nfsd4_init_conn() argument
1758 static struct nfsd4_conn *alloc_conn_from_crses(struct svc_rqst *rqstp, struct nfsd4_create_session… in alloc_conn_from_crses() argument
1764 return alloc_conn(rqstp, dir); in alloc_conn_from_crses()
1800 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp… in init_session() argument
1803 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in init_session()
1822 struct sockaddr *sa = svc_addr(rqstp); in init_session()
2218 static bool svc_rqst_integrity_protected(struct svc_rqst *rqstp) in svc_rqst_integrity_protected() argument
2220 struct svc_cred *cr = &rqstp->rq_cred; in svc_rqst_integrity_protected()
2230 bool nfsd4_mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp) in nfsd4_mach_creds_match() argument
2232 struct svc_cred *cr = &rqstp->rq_cred; in nfsd4_mach_creds_match()
2238 if (!svc_rqst_integrity_protected(rqstp)) in nfsd4_mach_creds_match()
2644 struct svc_rqst *rqstp, nfs4_verifier *verf) in create_client() argument
2647 struct sockaddr *sa = svc_addr(rqstp); in create_client()
2649 struct net *net = SVC_NET(rqstp); in create_client()
2656 ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); in create_client()
2806 gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, struct svc_rqst *rqstp) in gen_callback() argument
2809 struct sockaddr *sa = svc_addr(rqstp); in gen_callback()
2836 memcpy(&conn->cb_saddr, &rqstp->rq_daddr, rqstp->rq_daddrlen); in gen_callback()
2864 copy_cred(&slot->sl_cred, &resp->rqstp->rq_cred); in nfsd4_store_cache_entry()
2930 status = nfsd4_enc_sequence_replay(resp->rqstp->rq_argp, resp); in nfsd4_replay_cache_entry()
3004 nfsd4_exchange_id(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_exchange_id() argument
3013 struct sockaddr *sa = svc_addr(rqstp); in nfsd4_exchange_id()
3015 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_exchange_id()
3020 __func__, rqstp, exid, exid->clname.len, exid->clname.data, in nfsd4_exchange_id()
3026 new = create_client(exid->clname, rqstp, &verf); in nfsd4_exchange_id()
3051 if (!svc_rqst_integrity_protected(rqstp)) { in nfsd4_exchange_id()
3080 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
3088 if (!nfsd4_mach_creds_match(conf, rqstp)) { in nfsd4_exchange_id()
3302 nfsd4_create_session(struct svc_rqst *rqstp, in nfsd4_create_session() argument
3306 struct sockaddr *sa = svc_addr(rqstp); in nfsd4_create_session()
3313 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_create_session()
3330 conn = alloc_conn_from_crses(rqstp, cr_ses); in nfsd4_create_session()
3341 if (!nfsd4_mach_creds_match(conf, rqstp)) in nfsd4_create_session()
3351 if (!same_creds(&unconf->cl_cred, &rqstp->rq_cred) || in nfsd4_create_session()
3357 if (!nfsd4_mach_creds_match(unconf, rqstp)) in nfsd4_create_session()
3386 init_session(rqstp, new, conf, cr_ses); in nfsd4_create_session()
3398 nfsd4_init_conn(rqstp, conn, new); in nfsd4_create_session()
3429 __be32 nfsd4_backchannel_ctl(struct svc_rqst *rqstp, in nfsd4_backchannel_ctl() argument
3435 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_backchannel_ctl()
3451 __be32 nfsd4_bind_conn_to_session(struct svc_rqst *rqstp, in nfsd4_bind_conn_to_session() argument
3459 struct net *net = SVC_NET(rqstp); in nfsd4_bind_conn_to_session()
3462 if (!nfsd4_last_compound_op(rqstp)) in nfsd4_bind_conn_to_session()
3470 if (!nfsd4_mach_creds_match(session->se_client, rqstp)) in nfsd4_bind_conn_to_session()
3475 conn = alloc_conn(rqstp, bcts->dir); in nfsd4_bind_conn_to_session()
3479 nfsd4_init_conn(rqstp, conn, session); in nfsd4_bind_conn_to_session()
3576 static bool nfsd4_session_too_many_ops(struct svc_rqst *rqstp, struct nfsd4_session *session) in nfsd4_session_too_many_ops() argument
3578 struct nfsd4_compoundargs *args = rqstp->rq_argp; in nfsd4_session_too_many_ops()
3583 static bool nfsd4_request_too_big(struct svc_rqst *rqstp, in nfsd4_request_too_big() argument
3586 struct xdr_buf *xb = &rqstp->rq_arg; in nfsd4_request_too_big()
3591 static bool replay_matches_cache(struct svc_rqst *rqstp, in replay_matches_cache() argument
3594 struct nfsd4_compoundargs *argp = rqstp->rq_argp; in replay_matches_cache()
3613 if (!same_creds(&rqstp->rq_cred, &slot->sl_cred)) in replay_matches_cache()
3625 nfsd4_sequence(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_sequence() argument
3629 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_sequence()
3637 struct net *net = SVC_NET(rqstp); in nfsd4_sequence()
3647 conn = alloc_conn(rqstp, NFS4_CDFC4_FORE); in nfsd4_sequence()
3658 if (nfsd4_session_too_many_ops(rqstp, session)) in nfsd4_sequence()
3662 if (nfsd4_request_too_big(rqstp, session)) in nfsd4_sequence()
3684 if (!replay_matches_cache(rqstp, seq, slot)) in nfsd4_sequence()
3708 if (xdr_restrict_buflen(xdr, buflen - rqstp->rq_auth_slack)) in nfsd4_sequence()
3710 svc_reserve(rqstp, buflen); in nfsd4_sequence()
3765 nfsd4_destroy_clientid(struct svc_rqst *rqstp, in nfsd4_destroy_clientid() argument
3773 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_destroy_clientid()
3795 if (!nfsd4_mach_creds_match(clp, rqstp)) { in nfsd4_destroy_clientid()
3809 nfsd4_reclaim_complete(struct svc_rqst *rqstp, in nfsd4_reclaim_complete() argument
3849 nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_setclientid() argument
3858 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_setclientid()
3860 new = create_client(clname, rqstp, &clverifier); in nfsd4_setclientid()
3871 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid()
3890 gen_callback(new, setclid, rqstp); in nfsd4_setclientid()
3908 nfsd4_setclientid_confirm(struct svc_rqst *rqstp, in nfsd4_setclientid_confirm() argument
3919 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_setclientid_confirm()
3935 if (unconf && !same_creds(&unconf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3937 if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
4715 nfsd4_truncate(struct svc_rqst *rqstp, struct svc_fh *fh, in nfsd4_truncate() argument
4726 return nfsd_setattr(rqstp, fh, &iattr, 0, (time_t)0); in nfsd4_truncate()
4729 static __be32 nfs4_get_vfs_file(struct svc_rqst *rqstp, struct nfs4_file *fp, in nfs4_get_vfs_file() argument
4769 status = nfsd_file_acquire(rqstp, cur_fh, access, &nf); in nfs4_get_vfs_file()
4782 status = nfsd4_truncate(rqstp, cur_fh, open); in nfs4_get_vfs_file()
4795 nfs4_upgrade_open(struct svc_rqst *rqstp, struct nfs4_file *fp, struct svc_fh *cur_fh, struct nfs4_… in nfs4_upgrade_open() argument
4801 return nfs4_get_vfs_file(rqstp, fp, cur_fh, stp, open); in nfs4_upgrade_open()
4816 status = nfsd4_truncate(rqstp, cur_fh, open); in nfs4_upgrade_open()
5049 nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) in nfsd4_process_open2() argument
5051 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_process_open2()
5091 status = nfs4_upgrade_open(rqstp, fp, current_fh, stp, open); in nfsd4_process_open2()
5097 status = nfs4_get_vfs_file(rqstp, fp, current_fh, stp, open); in nfsd4_process_open2()
5177 nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_renew() argument
5183 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_renew()
5621 nfs4_check_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfs4_stid *s, in nfs4_check_file() argument
5630 status = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfs4_check_file()
5637 status = nfsd_file_acquire(rqstp, fhp, acc, &nf); in nfs4_check_file()
5650 nfs4_preprocess_stateid_op(struct svc_rqst *rqstp, in nfs4_preprocess_stateid_op() argument
5655 struct net *net = SVC_NET(rqstp); in nfs4_preprocess_stateid_op()
5699 status = nfs4_check_file(rqstp, fhp, s, nfp, flags); in nfs4_preprocess_stateid_op()
5710 nfsd4_test_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_test_stateid() argument
5754 nfsd4_free_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_free_stateid() argument
5882 nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_open_confirm() argument
5889 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_open_confirm()
5894 status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0); in nfsd4_open_confirm()
5951 nfsd4_open_downgrade(struct svc_rqst *rqstp, in nfsd4_open_downgrade() argument
5957 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_open_downgrade()
6020 nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_close() argument
6026 struct net *net = SVC_NET(rqstp); in nfsd4_close()
6069 nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_delegreturn() argument
6077 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_delegreturn()
6079 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) in nfsd4_delegreturn()
6454 nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lock() argument
6473 struct net *net = SVC_NET(rqstp); in nfsd4_lock()
6483 if ((status = fh_verify(rqstp, &cstate->current_fh, in nfsd4_lock()
6675 static __be32 nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock) in nfsd_test_lock() argument
6678 __be32 err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_READ, &nf); in nfsd_test_lock()
6690 nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lockt() argument
6697 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_lockt()
6699 if (locks_in_grace(SVC_NET(rqstp))) in nfsd4_lockt()
6711 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) in nfsd4_lockt()
6747 status = nfsd_test_lock(rqstp, &cstate->current_fh, file_lock); in nfsd4_lockt()
6764 nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_locku() argument
6773 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_locku()
6871 nfsd4_release_lockowner(struct svc_rqst *rqstp, in nfsd4_release_lockowner() argument
6883 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_release_lockowner()