Lines Matching refs:conf
3008 struct nfs4_client *conf, *new; in nfsd4_exchange_id() local
3078 conf = find_confirmed_client_by_name(&exid->clname, nn); in nfsd4_exchange_id()
3079 if (conf) { in nfsd4_exchange_id()
3080 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
3081 bool verfs_match = same_verf(&verf, &conf->cl_verifier); in nfsd4_exchange_id()
3084 if (!clp_used_exchangeid(conf)) { /* buggy client */ in nfsd4_exchange_id()
3088 if (!nfsd4_mach_creds_match(conf, rqstp)) { in nfsd4_exchange_id()
3105 if (client_has_state(conf)) { in nfsd4_exchange_id()
3112 conf->cl_exchange_flags |= EXCHGID4_FLAG_CONFIRMED_R; in nfsd4_exchange_id()
3116 conf = NULL; in nfsd4_exchange_id()
3131 if (conf) { in nfsd4_exchange_id()
3132 status = mark_client_expired_locked(conf); in nfsd4_exchange_id()
3141 swap(new, conf); in nfsd4_exchange_id()
3143 exid->clientid.cl_boot = conf->cl_clientid.cl_boot; in nfsd4_exchange_id()
3144 exid->clientid.cl_id = conf->cl_clientid.cl_id; in nfsd4_exchange_id()
3146 exid->seqid = conf->cl_cs_slot.sl_seqid + 1; in nfsd4_exchange_id()
3147 nfsd4_set_ex_flags(conf, exid); in nfsd4_exchange_id()
3150 conf->cl_cs_slot.sl_seqid, conf->cl_exchange_flags); in nfsd4_exchange_id()
3307 struct nfs4_client *conf, *unconf; in nfsd4_create_session() local
3336 conf = find_confirmed_client(&cr_ses->clientid, true, nn); in nfsd4_create_session()
3337 WARN_ON_ONCE(conf && unconf); in nfsd4_create_session()
3339 if (conf) { in nfsd4_create_session()
3341 if (!nfsd4_mach_creds_match(conf, rqstp)) in nfsd4_create_session()
3343 cs_slot = &conf->cl_cs_slot; in nfsd4_create_session()
3375 conf = unconf; in nfsd4_create_session()
3386 init_session(rqstp, new, conf, cr_ses); in nfsd4_create_session()
3770 struct nfs4_client *conf, *unconf; in nfsd4_destroy_clientid() local
3777 conf = find_confirmed_client(&dc->clientid, true, nn); in nfsd4_destroy_clientid()
3778 WARN_ON_ONCE(conf && unconf); in nfsd4_destroy_clientid()
3780 if (conf) { in nfsd4_destroy_clientid()
3781 if (client_has_state(conf)) { in nfsd4_destroy_clientid()
3785 status = mark_client_expired_locked(conf); in nfsd4_destroy_clientid()
3788 clp = conf; in nfsd4_destroy_clientid()
3855 struct nfs4_client *conf, *new; in nfsd4_setclientid() local
3865 conf = find_confirmed_client_by_name(&clname, nn); in nfsd4_setclientid()
3866 if (conf && client_has_state(conf)) { in nfsd4_setclientid()
3869 if (clp_used_exchangeid(conf)) in nfsd4_setclientid()
3871 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid()
3873 rpc_ntop((struct sockaddr *) &conf->cl_addr, addr_str, in nfsd4_setclientid()
3883 if (conf && same_verf(&conf->cl_verifier, &clverifier)) { in nfsd4_setclientid()
3885 copy_clid(new, conf); in nfsd4_setclientid()
3914 struct nfs4_client *conf, *unconf; in nfsd4_setclientid_confirm() local
3925 conf = find_confirmed_client(clid, false, nn); in nfsd4_setclientid_confirm()
3937 if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3941 if (conf && same_verf(&confirm, &conf->cl_confirm)) { in nfsd4_setclientid_confirm()
3949 if (conf) { /* case 1: callback update */ in nfsd4_setclientid_confirm()
3952 nfsd4_change_callback(conf, &unconf->cl_cb_conn); in nfsd4_setclientid_confirm()
3970 conf = unconf; in nfsd4_setclientid_confirm()
3972 get_client_locked(conf); in nfsd4_setclientid_confirm()
3974 nfsd4_probe_callback(conf); in nfsd4_setclientid_confirm()
3976 put_client_renew_locked(conf); in nfsd4_setclientid_confirm()