Searched refs:ls_lkbtbl (Results 1 – 3 of 3) sorted by relevance
473 ls->ls_lkbtbl = kmalloc(sizeof(struct dlm_lkbtable) * size, GFP_KERNEL); in new_lockspace()474 if (!ls->ls_lkbtbl) in new_lockspace()477 INIT_LIST_HEAD(&ls->ls_lkbtbl[i].list); in new_lockspace()478 rwlock_init(&ls->ls_lkbtbl[i].lock); in new_lockspace()479 ls->ls_lkbtbl[i].counter = 1; in new_lockspace()604 kfree(ls->ls_lkbtbl); in new_lockspace()652 read_lock(&ls->ls_lkbtbl[i].lock); in lockspace_busy()653 if (!list_empty(&ls->ls_lkbtbl[i].list)) { in lockspace_busy()655 list_for_each_entry(lkb, &ls->ls_lkbtbl[i].list, in lockspace_busy()658 read_unlock(&ls->ls_lkbtbl[i].lock); in lockspace_busy()[all …]
604 write_lock(&ls->ls_lkbtbl[bucket].lock); in create_lkb()609 lkid = (bucket << 16) | ls->ls_lkbtbl[bucket].counter++; in create_lkb()611 list_for_each_entry(tmp, &ls->ls_lkbtbl[bucket].list, in create_lkb()621 list_add(&lkb->lkb_idtbl_list, &ls->ls_lkbtbl[bucket].list); in create_lkb()622 write_unlock(&ls->ls_lkbtbl[bucket].lock); in create_lkb()633 list_for_each_entry(lkb, &ls->ls_lkbtbl[bucket].list, lkb_idtbl_list) { in __find_lkb()648 read_lock(&ls->ls_lkbtbl[bucket].lock); in find_lkb()652 read_unlock(&ls->ls_lkbtbl[bucket].lock); in find_lkb()675 write_lock(&ls->ls_lkbtbl[bucket].lock); in __put_lkb()678 write_unlock(&ls->ls_lkbtbl[bucket].lock); in __put_lkb()[all …]
455 struct dlm_lkbtable *ls_lkbtbl; member