• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/dlm/

Lines Matching defs:lkb

133 /* we could possibly check if the cancel of an orphan has resulted in the lkb
134 being removed and then remove that lkb from the orphans list and free it */
136 void dlm_user_add_ast(struct dlm_lkb *lkb, int type)
143 if (lkb->lkb_flags & (DLM_IFL_ORPHAN | DLM_IFL_DEAD))
146 ls = lkb->lkb_resource->res_ls;
151 lkb->ua so we can't try to use it. This second check is necessary
155 if (lkb->lkb_flags & (DLM_IFL_ORPHAN | DLM_IFL_DEAD))
158 DLM_ASSERT(lkb->lkb_astparam, dlm_print_lkb(lkb););
159 ua = (struct dlm_user_args *)lkb->lkb_astparam;
167 ast_type = lkb->lkb_ast_type;
168 lkb->lkb_ast_type |= type;
171 kref_get(&lkb->lkb_ref);
172 list_add_tail(&lkb->lkb_astqueue, &proc->asts);
177 lkb->lkb_id, ua->lksb.sb_status, lkb->lkb_flags);
180 available for the application to use. The lkb still exists until
187 not related to the lifetime of the lkb struct which is managed
191 lkb->lkb_grmode == DLM_LOCK_IV &&
196 lkb->lkb_grmode == DLM_LOCK_IV))
199 lkb->lkb_ast_type &= ~AST_BAST;
200 lkb->lkb_flags |= DLM_IFL_ENDOFLIFE;
208 if ((lkb->lkb_ast_type & AST_COMP) &&
209 (lkb->lkb_lksb->sb_status == 0) &&
210 lkb->lkb_lksb->sb_lvbptr &&
211 dlm_lvb_operations[ua->old_mode + 1][lkb->lkb_grmode + 1])
220 if (!list_empty(&lkb->lkb_ownqueue)) {
221 list_del_init(&lkb->lkb_ownqueue);
222 dlm_put_lkb(lkb);
612 /* at this point no more lkb's should exist for this lockspace,
614 looking for lkb->ua->proc */
701 struct dlm_lkb *lkb;
749 the lkb, don't remove lkb from asts list unless no asts remain */
751 lkb = list_entry(proc->asts.next, struct dlm_lkb, lkb_astqueue);
753 if (lkb->lkb_ast_type & AST_COMP) {
754 lkb->lkb_ast_type &= ~AST_COMP;
756 } else if (lkb->lkb_ast_type & AST_BAST) {
757 lkb->lkb_ast_type &= ~AST_BAST;
759 bmode = lkb->lkb_bastmode;
762 if (!lkb->lkb_ast_type) {
763 list_del(&lkb->lkb_astqueue);
768 ua = (struct dlm_user_args *)lkb->lkb_astparam;
774 dlm_user_add_ast() and may result in the lkb being freed */
776 dlm_put_lkb(lkb);