Lines Matching defs:cl

917 	struct nfs4_client *cl;
922 cl = new->co_client;
926 if (co->co_client == cl) {
939 struct nfs4_stid *nfs4_alloc_stid(struct nfs4_client *cl, struct kmem_cache *slab,
950 spin_lock(&cl->cl_lock);
952 new_id = idr_alloc_cyclic(&cl->cl_stateids, stid, 1, 0, GFP_NOWAIT);
953 spin_unlock(&cl->cl_lock);
959 stid->sc_client = cl;
961 stid->sc_stateid.si_opaque.so_clid = cl->cl_clientid;
2556 bool nfsd4_mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp)
2560 if (!cl->cl_mach_cred)
2562 if (cl->cl_cred.cr_gss_mech != cr->cr_gss_mech)
2566 if (cl->cl_cred.cr_raw_principal)
2567 return 0 == strcmp(cl->cl_cred.cr_raw_principal,
2571 return 0 == strcmp(cl->cl_cred.cr_principal, cr->cr_principal);
2595 find_stateid_locked(struct nfs4_client *cl, stateid_t *t)
2599 ret = idr_find(&cl->cl_stateids, t->si_opaque.so_id);
2606 find_stateid_by_type(struct nfs4_client *cl, stateid_t *t,
2611 spin_lock(&cl->cl_lock);
2612 s = find_stateid_locked(cl, t);
2620 spin_unlock(&cl->cl_lock);
4767 struct nfs4_client *cl = s->sc_client;
4778 spin_unlock(&cl->cl_lock);
4784 spin_unlock(&cl->cl_lock);
4791 spin_unlock(&cl->cl_lock);
4795 spin_unlock(&cl->cl_lock);
4799 static void nfsd40_drop_revoked_stid(struct nfs4_client *cl,
4810 if (cl->cl_minorversion == 0) {
4813 spin_lock(&cl->cl_lock);
4814 st = find_stateid_locked(cl, stid);
4818 spin_unlock(&cl->cl_lock);
5394 static struct nfs4_delegation *find_deleg_stateid(struct nfs4_client *cl,
5399 ret = find_stateid_by_type(cl, s, SC_TYPE_DELEG, SC_STATUS_REVOKED);
5412 nfs4_check_deleg(struct nfs4_client *cl, struct nfsd4_open *open,
5419 deleg = find_deleg_stateid(cl, &open->op_delegate_stateid);
5429 nfsd40_drop_revoked_stid(cl, &open->op_delegate_stateid);
6027 struct nfs4_client *cl = open->op_openowner->oo_owner.so_client;
6043 status = nfs4_check_deleg(cl, open, &dp);
6737 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid)
6745 spin_lock(&cl->cl_lock);
6746 s = find_stateid_locked(cl, stateid);
6769 spin_unlock(&cl->cl_lock);
6771 nfsd40_drop_revoked_stid(cl, stateid);
7058 struct nfs4_client *cl = cstate->clp;
7062 nfsd4_validate_stateid(cl, &stateid->ts_id_stateid);
7104 struct nfs4_client *cl = cstate->clp;
7107 spin_lock(&cl->cl_lock);
7108 s = find_stateid_locked(cl, stateid);
7123 spin_unlock(&cl->cl_lock);
7139 spin_unlock(&cl->cl_lock);
7145 spin_unlock(&cl->cl_lock);
7801 struct nfs4_client *cl = oo->oo_owner.so_client;
7807 lo = find_lockowner_str(cl, &lock->lk_new_owner);
7810 lo = alloc_init_lock_stateowner(strhashval, cl, ost, lock);