Lines Matching refs:rqstp
1471 static struct nfsd4_conn *alloc_conn(struct svc_rqst *rqstp, u32 flags) in alloc_conn() argument
1478 svc_xprt_get(rqstp->rq_xprt); in alloc_conn()
1479 conn->cn_xprt = rqstp->rq_xprt; in alloc_conn()
1506 static void nfsd4_init_conn(struct svc_rqst *rqstp, struct nfsd4_conn *conn, struct nfsd4_session *… in nfsd4_init_conn() argument
1519 static struct nfsd4_conn *alloc_conn_from_crses(struct svc_rqst *rqstp, struct nfsd4_create_session… in alloc_conn_from_crses() argument
1525 return alloc_conn(rqstp, dir); in alloc_conn_from_crses()
1561 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp… in init_session() argument
1564 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in init_session()
1583 struct sockaddr *sa = svc_addr(rqstp); in init_session()
1932 static bool svc_rqst_integrity_protected(struct svc_rqst *rqstp) in svc_rqst_integrity_protected() argument
1934 struct svc_cred *cr = &rqstp->rq_cred; in svc_rqst_integrity_protected()
1944 static bool mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp) in mach_creds_match() argument
1946 struct svc_cred *cr = &rqstp->rq_cred; in mach_creds_match()
1952 if (!svc_rqst_integrity_protected(rqstp)) in mach_creds_match()
2008 struct svc_rqst *rqstp, nfs4_verifier *verf) in create_client() argument
2011 struct sockaddr *sa = svc_addr(rqstp); in create_client()
2013 struct net *net = SVC_NET(rqstp); in create_client()
2019 ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); in create_client()
2160 gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, struct svc_rqst *rqstp) in gen_callback() argument
2163 struct sockaddr *sa = svc_addr(rqstp); in gen_callback()
2190 memcpy(&conn->cb_saddr, &rqstp->rq_daddr, rqstp->rq_daddrlen); in gen_callback()
2271 status = nfsd4_enc_sequence_replay(resp->rqstp->rq_argp, resp); in nfsd4_replay_cache_entry()
2320 nfsd4_exchange_id(struct svc_rqst *rqstp, in nfsd4_exchange_id() argument
2329 struct sockaddr *sa = svc_addr(rqstp); in nfsd4_exchange_id()
2331 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_exchange_id()
2336 __func__, rqstp, exid, exid->clname.len, exid->clname.data, in nfsd4_exchange_id()
2344 if (!svc_rqst_integrity_protected(rqstp)) in nfsd4_exchange_id()
2354 new = create_client(exid->clname, rqstp, &verf); in nfsd4_exchange_id()
2362 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
2370 if (!mach_creds_match(conf, rqstp)) { in nfsd4_exchange_id()
2578 nfsd4_create_session(struct svc_rqst *rqstp, in nfsd4_create_session() argument
2582 struct sockaddr *sa = svc_addr(rqstp); in nfsd4_create_session()
2589 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_create_session()
2606 conn = alloc_conn_from_crses(rqstp, cr_ses); in nfsd4_create_session()
2617 if (!mach_creds_match(conf, rqstp)) in nfsd4_create_session()
2629 if (!same_creds(&unconf->cl_cred, &rqstp->rq_cred) || in nfsd4_create_session()
2635 if (!mach_creds_match(unconf, rqstp)) in nfsd4_create_session()
2665 init_session(rqstp, new, conf, cr_ses); in nfsd4_create_session()
2677 nfsd4_init_conn(rqstp, conn, new); in nfsd4_create_session()
2708 __be32 nfsd4_backchannel_ctl(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nf… in nfsd4_backchannel_ctl() argument
2711 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_backchannel_ctl()
2727 __be32 nfsd4_bind_conn_to_session(struct svc_rqst *rqstp, in nfsd4_bind_conn_to_session() argument
2734 struct net *net = SVC_NET(rqstp); in nfsd4_bind_conn_to_session()
2737 if (!nfsd4_last_compound_op(rqstp)) in nfsd4_bind_conn_to_session()
2745 if (!mach_creds_match(session->se_client, rqstp)) in nfsd4_bind_conn_to_session()
2750 conn = alloc_conn(rqstp, bcts->dir); in nfsd4_bind_conn_to_session()
2754 nfsd4_init_conn(rqstp, conn, session); in nfsd4_bind_conn_to_session()
2851 static bool nfsd4_session_too_many_ops(struct svc_rqst *rqstp, struct nfsd4_session *session) in nfsd4_session_too_many_ops() argument
2853 struct nfsd4_compoundargs *args = rqstp->rq_argp; in nfsd4_session_too_many_ops()
2858 static bool nfsd4_request_too_big(struct svc_rqst *rqstp, in nfsd4_request_too_big() argument
2861 struct xdr_buf *xb = &rqstp->rq_arg; in nfsd4_request_too_big()
2867 nfsd4_sequence(struct svc_rqst *rqstp, in nfsd4_sequence() argument
2871 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_sequence()
2879 struct net *net = SVC_NET(rqstp); in nfsd4_sequence()
2889 conn = alloc_conn(rqstp, NFS4_CDFC4_FORE); in nfsd4_sequence()
2900 if (nfsd4_session_too_many_ops(rqstp, session)) in nfsd4_sequence()
2904 if (nfsd4_request_too_big(rqstp, session)) in nfsd4_sequence()
2947 if (xdr_restrict_buflen(xdr, buflen - rqstp->rq_auth_slack)) in nfsd4_sequence()
2949 svc_reserve(rqstp, buflen); in nfsd4_sequence()
3004 nfsd4_destroy_clientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_de… in nfsd4_destroy_clientid() argument
3009 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_destroy_clientid()
3031 if (!mach_creds_match(clp, rqstp)) { in nfsd4_destroy_clientid()
3045 nfsd4_reclaim_complete(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_re… in nfsd4_reclaim_complete() argument
3082 nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_setclientid() argument
3090 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_setclientid()
3092 new = create_client(clname, rqstp, &clverifier); in nfsd4_setclientid()
3103 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid()
3121 gen_callback(new, setclid, rqstp); in nfsd4_setclientid()
3139 nfsd4_setclientid_confirm(struct svc_rqst *rqstp, in nfsd4_setclientid_confirm() argument
3148 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_setclientid_confirm()
3163 if (unconf && !same_creds(&unconf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3165 if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3853 nfsd4_truncate(struct svc_rqst *rqstp, struct svc_fh *fh, in nfsd4_truncate() argument
3864 return nfsd_setattr(rqstp, fh, &iattr, 0, (time_t)0); in nfsd4_truncate()
3867 static __be32 nfs4_get_vfs_file(struct svc_rqst *rqstp, struct nfs4_file *fp, in nfs4_get_vfs_file() argument
3907 status = nfsd_open(rqstp, cur_fh, S_IFREG, access, &filp); in nfs4_get_vfs_file()
3920 status = nfsd4_truncate(rqstp, cur_fh, open); in nfs4_get_vfs_file()
3933 nfs4_upgrade_open(struct svc_rqst *rqstp, struct nfs4_file *fp, struct svc_fh *cur_fh, struct nfs4_… in nfs4_upgrade_open() argument
3939 return nfs4_get_vfs_file(rqstp, fp, cur_fh, stp, open); in nfs4_upgrade_open()
3955 status = nfsd4_truncate(rqstp, cur_fh, open); in nfs4_upgrade_open()
4226 nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) in nfsd4_process_open2() argument
4228 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_process_open2()
4260 status = nfs4_upgrade_open(rqstp, fp, current_fh, stp, open); in nfsd4_process_open2()
4270 status = nfs4_get_vfs_file(rqstp, fp, current_fh, stp, open); in nfsd4_process_open2()
4347 nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_renew() argument
4352 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_renew()
4770 nfsd4_test_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_test_stateid() argument
4784 nfsd4_free_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_free_stateid() argument
4923 nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_open_confirm() argument
4929 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_open_confirm()
4934 status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0); in nfsd4_open_confirm()
4992 nfsd4_open_downgrade(struct svc_rqst *rqstp, in nfsd4_open_downgrade() argument
4998 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_open_downgrade()
5065 nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_close() argument
5070 struct net *net = SVC_NET(rqstp); in nfsd4_close()
5096 nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_delegreturn() argument
5103 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_delegreturn()
5105 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) in nfsd4_delegreturn()
5436 nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lock() argument
5451 struct net *net = SVC_NET(rqstp); in nfsd4_lock()
5461 if ((status = fh_verify(rqstp, &cstate->current_fh, in nfsd4_lock()
5627 static __be32 nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock) in nfsd_test_lock() argument
5630 __be32 err = nfsd_open(rqstp, fhp, S_IFREG, NFSD_MAY_READ, &file); in nfsd_test_lock()
5642 nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lockt() argument
5648 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_lockt()
5650 if (locks_in_grace(SVC_NET(rqstp))) in nfsd4_lockt()
5662 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) in nfsd4_lockt()
5699 status = nfsd_test_lock(rqstp, &cstate->current_fh, file_lock); in nfsd4_lockt()
5716 nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_locku() argument
5724 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_locku()
5823 nfsd4_release_lockowner(struct svc_rqst *rqstp, in nfsd4_release_lockowner() argument
5834 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_release_lockowner()