Lines Matching refs:conf
3238 struct nfs4_client *conf, *new; in nfsd4_exchange_id() local
3309 conf = find_confirmed_client_by_name(&exid->clname, nn); in nfsd4_exchange_id()
3310 if (conf) { in nfsd4_exchange_id()
3311 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
3312 bool verfs_match = same_verf(&verf, &conf->cl_verifier); in nfsd4_exchange_id()
3315 if (!clp_used_exchangeid(conf)) { /* buggy client */ in nfsd4_exchange_id()
3319 if (!nfsd4_mach_creds_match(conf, rqstp)) { in nfsd4_exchange_id()
3333 trace_nfsd_clid_confirmed_r(conf); in nfsd4_exchange_id()
3337 if (client_has_state(conf)) { in nfsd4_exchange_id()
3339 trace_nfsd_clid_cred_mismatch(conf, rqstp); in nfsd4_exchange_id()
3345 conf->cl_exchange_flags |= EXCHGID4_FLAG_CONFIRMED_R; in nfsd4_exchange_id()
3346 trace_nfsd_clid_confirmed_r(conf); in nfsd4_exchange_id()
3350 trace_nfsd_clid_verf_mismatch(conf, rqstp, &verf); in nfsd4_exchange_id()
3351 conf = NULL; in nfsd4_exchange_id()
3368 if (conf) { in nfsd4_exchange_id()
3369 status = mark_client_expired_locked(conf); in nfsd4_exchange_id()
3372 trace_nfsd_clid_replaced(&conf->cl_clientid); in nfsd4_exchange_id()
3379 swap(new, conf); in nfsd4_exchange_id()
3381 exid->clientid.cl_boot = conf->cl_clientid.cl_boot; in nfsd4_exchange_id()
3382 exid->clientid.cl_id = conf->cl_clientid.cl_id; in nfsd4_exchange_id()
3384 exid->seqid = conf->cl_cs_slot.sl_seqid + 1; in nfsd4_exchange_id()
3385 nfsd4_set_ex_flags(conf, exid); in nfsd4_exchange_id()
3388 conf->cl_cs_slot.sl_seqid, conf->cl_exchange_flags); in nfsd4_exchange_id()
3547 struct nfs4_client *conf, *unconf; in nfsd4_create_session() local
3576 conf = find_confirmed_client(&cr_ses->clientid, true, nn); in nfsd4_create_session()
3577 WARN_ON_ONCE(conf && unconf); in nfsd4_create_session()
3579 if (conf) { in nfsd4_create_session()
3581 if (!nfsd4_mach_creds_match(conf, rqstp)) in nfsd4_create_session()
3583 cs_slot = &conf->cl_cs_slot; in nfsd4_create_session()
3617 conf = unconf; in nfsd4_create_session()
3628 init_session(rqstp, new, conf, cr_ses); in nfsd4_create_session()
3639 if (conf == unconf) in nfsd4_create_session()
3640 fsnotify_dentry(conf->cl_nfsd_info_dentry, FS_MODIFY); in nfsd4_create_session()
4054 struct nfs4_client *conf, *unconf; in nfsd4_destroy_clientid() local
4061 conf = find_confirmed_client(&dc->clientid, true, nn); in nfsd4_destroy_clientid()
4062 WARN_ON_ONCE(conf && unconf); in nfsd4_destroy_clientid()
4064 if (conf) { in nfsd4_destroy_clientid()
4065 if (client_has_state(conf)) { in nfsd4_destroy_clientid()
4069 status = mark_client_expired_locked(conf); in nfsd4_destroy_clientid()
4072 clp = conf; in nfsd4_destroy_clientid()
4141 struct nfs4_client *conf, *new; in nfsd4_setclientid() local
4150 conf = find_confirmed_client_by_name(&clname, nn); in nfsd4_setclientid()
4151 if (conf && client_has_state(conf)) { in nfsd4_setclientid()
4153 if (clp_used_exchangeid(conf)) in nfsd4_setclientid()
4155 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid()
4156 trace_nfsd_clid_cred_mismatch(conf, rqstp); in nfsd4_setclientid()
4163 if (conf) { in nfsd4_setclientid()
4164 if (same_verf(&conf->cl_verifier, &clverifier)) { in nfsd4_setclientid()
4165 copy_clid(new, conf); in nfsd4_setclientid()
4168 trace_nfsd_clid_verf_mismatch(conf, rqstp, in nfsd4_setclientid()
4198 struct nfs4_client *conf, *unconf; in nfsd4_setclientid_confirm() local
4209 conf = find_confirmed_client(clid, false, nn); in nfsd4_setclientid_confirm()
4223 if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid_confirm()
4224 trace_nfsd_clid_cred_mismatch(conf, rqstp); in nfsd4_setclientid_confirm()
4228 if (conf && same_verf(&confirm, &conf->cl_confirm)) { in nfsd4_setclientid_confirm()
4235 if (conf) { in nfsd4_setclientid_confirm()
4238 nfsd4_change_callback(conf, &unconf->cl_cb_conn); in nfsd4_setclientid_confirm()
4257 conf = unconf; in nfsd4_setclientid_confirm()
4259 get_client_locked(conf); in nfsd4_setclientid_confirm()
4261 if (conf == unconf) in nfsd4_setclientid_confirm()
4262 fsnotify_dentry(conf->cl_nfsd_info_dentry, FS_MODIFY); in nfsd4_setclientid_confirm()
4263 nfsd4_probe_callback(conf); in nfsd4_setclientid_confirm()
4265 put_client_renew_locked(conf); in nfsd4_setclientid_confirm()