Lines Matching refs:ls
61 smb2_lease_hold(smb_lease_t *ls) in smb2_lease_hold() argument
65 mutex_enter(&ls->ls_mutex); in smb2_lease_hold()
66 ret = !ls->ls_destroying; in smb2_lease_hold()
68 ls->ls_refcnt++; in smb2_lease_hold()
69 mutex_exit(&ls->ls_mutex); in smb2_lease_hold()
75 lease_destroy(smb_lease_t *ls) in lease_destroy() argument
77 smb_node_release(ls->ls_node); in lease_destroy()
78 mutex_destroy(&ls->ls_mutex); in lease_destroy()
79 kmem_cache_free(smb_lease_cache, ls); in lease_destroy()
83 smb2_lease_rele(smb_lease_t *ls) in smb2_lease_rele() argument
88 mutex_enter(&ls->ls_mutex); in smb2_lease_rele()
89 ls->ls_refcnt--; in smb2_lease_rele()
90 if (ls->ls_refcnt != 0 || ls->ls_destroying) { in smb2_lease_rele()
91 mutex_exit(&ls->ls_mutex); in smb2_lease_rele()
94 ls->ls_destroying = B_TRUE; in smb2_lease_rele()
95 mutex_exit(&ls->ls_mutex); in smb2_lease_rele()
101 bucket = ls->ls_bucket; in smb2_lease_rele()
104 mutex_enter(&ls->ls_mutex); in smb2_lease_rele()
105 if (ls->ls_refcnt == 0) { in smb2_lease_rele()
106 smb_llist_remove(bucket, ls); in smb2_lease_rele()
109 ls->ls_destroying = B_FALSE; in smb2_lease_rele()
111 mutex_exit(&ls->ls_mutex); in smb2_lease_rele()
116 lease_destroy(ls); in smb2_lease_rele()
462 smb_lease_t *ls = sr->fid_ofile->f_lease; in smb2_lease_break_notification() local
470 if (ls->ls_version < 2) in smb2_lease_break_notification()
498 ls->ls_key, /* c */ in smb2_lease_break_notification()