Lines Matching refs:conf
2502 struct nfs4_client *conf, *new; in nfsd4_exchange_id() local
2568 conf = find_confirmed_client_by_name(&exid->clname, nn); in nfsd4_exchange_id()
2569 if (conf) { in nfsd4_exchange_id()
2570 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
2571 bool verfs_match = same_verf(&verf, &conf->cl_verifier); in nfsd4_exchange_id()
2574 if (!clp_used_exchangeid(conf)) { /* buggy client */ in nfsd4_exchange_id()
2578 if (!nfsd4_mach_creds_match(conf, rqstp)) { in nfsd4_exchange_id()
2595 if (client_has_state(conf)) { in nfsd4_exchange_id()
2602 conf->cl_exchange_flags |= EXCHGID4_FLAG_CONFIRMED_R; in nfsd4_exchange_id()
2606 conf = NULL; in nfsd4_exchange_id()
2621 if (conf) { in nfsd4_exchange_id()
2622 status = mark_client_expired_locked(conf); in nfsd4_exchange_id()
2632 swap(new, conf); in nfsd4_exchange_id()
2634 exid->clientid.cl_boot = conf->cl_clientid.cl_boot; in nfsd4_exchange_id()
2635 exid->clientid.cl_id = conf->cl_clientid.cl_id; in nfsd4_exchange_id()
2637 exid->seqid = conf->cl_cs_slot.sl_seqid + 1; in nfsd4_exchange_id()
2638 nfsd4_set_ex_flags(conf, exid); in nfsd4_exchange_id()
2641 conf->cl_cs_slot.sl_seqid, conf->cl_exchange_flags); in nfsd4_exchange_id()
2798 struct nfs4_client *conf, *unconf; in nfsd4_create_session() local
2827 conf = find_confirmed_client(&cr_ses->clientid, true, nn); in nfsd4_create_session()
2828 WARN_ON_ONCE(conf && unconf); in nfsd4_create_session()
2830 if (conf) { in nfsd4_create_session()
2832 if (!nfsd4_mach_creds_match(conf, rqstp)) in nfsd4_create_session()
2834 cs_slot = &conf->cl_cs_slot; in nfsd4_create_session()
2866 conf = unconf; in nfsd4_create_session()
2877 init_session(rqstp, new, conf, cr_ses); in nfsd4_create_session()
3261 struct nfs4_client *conf, *unconf; in nfsd4_destroy_clientid() local
3268 conf = find_confirmed_client(&dc->clientid, true, nn); in nfsd4_destroy_clientid()
3269 WARN_ON_ONCE(conf && unconf); in nfsd4_destroy_clientid()
3271 if (conf) { in nfsd4_destroy_clientid()
3272 if (client_has_state(conf)) { in nfsd4_destroy_clientid()
3276 status = mark_client_expired_locked(conf); in nfsd4_destroy_clientid()
3279 clp = conf; in nfsd4_destroy_clientid()
3345 struct nfs4_client *conf, *new; in nfsd4_setclientid() local
3355 conf = find_confirmed_client_by_name(&clname, nn); in nfsd4_setclientid()
3356 if (conf && client_has_state(conf)) { in nfsd4_setclientid()
3359 if (clp_used_exchangeid(conf)) in nfsd4_setclientid()
3361 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid()
3363 rpc_ntop((struct sockaddr *) &conf->cl_addr, addr_str, in nfsd4_setclientid()
3373 if (conf && same_verf(&conf->cl_verifier, &clverifier)) { in nfsd4_setclientid()
3375 copy_clid(new, conf); in nfsd4_setclientid()
3404 struct nfs4_client *conf, *unconf; in nfsd4_setclientid_confirm() local
3415 conf = find_confirmed_client(clid, false, nn); in nfsd4_setclientid_confirm()
3427 if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3431 if (conf && same_verf(&confirm, &conf->cl_confirm)) { in nfsd4_setclientid_confirm()
3439 if (conf) { /* case 1: callback update */ in nfsd4_setclientid_confirm()
3442 nfsd4_change_callback(conf, &unconf->cl_cb_conn); in nfsd4_setclientid_confirm()
3460 conf = unconf; in nfsd4_setclientid_confirm()
3462 get_client_locked(conf); in nfsd4_setclientid_confirm()
3464 nfsd4_probe_callback(conf); in nfsd4_setclientid_confirm()
3466 put_client_renew_locked(conf); in nfsd4_setclientid_confirm()