Lines Matching defs:proc

5602 	spin_lock(&ua->proc->locks_spin);
5604 list_add_tail(&lkb->lkb_ownqueue, &ua->proc->locks);
5605 spin_unlock(&ua->proc->locks_spin);
5721 ua->proc = ua_tmp->proc;
5732 * for the proc locks list.
5735 spin_lock(&ua->proc->locks_spin);
5736 list_add_tail(&lkb->lkb_ownqueue, &ua->proc->locks);
5737 spin_unlock(&ua->proc->locks_spin);
5781 spin_lock(&ua->proc->locks_spin);
5782 /* dlm_user_add_cb() may have already taken lkb off the proc list */
5784 list_move(&lkb->lkb_ownqueue, &ua->proc->unlocking);
5785 spin_unlock(&ua->proc->locks_spin);
5932 struct dlm_user_proc *proc)
5937 if (list_empty(&proc->locks))
5940 lkb = list_entry(proc->locks.next, struct dlm_lkb, lkb_ownqueue);
5953 1) references lkb->ua which we free here and 2) adds lkbs to proc->asts,
5956 /* proc CLOSING flag is set so no more device_reads should look at proc->asts
5957 list, and no more device_writes should add lkb's to proc->locks list; so we
5962 void dlm_clear_proc_locks(struct dlm_ls *ls, struct dlm_user_proc *proc)
5969 lkb = del_proc_lock(ls, proc);
5977 /* this removes the reference for the proc->locks list
5987 list_for_each_entry_safe(lkb, safe, &proc->unlocking, lkb_ownqueue) {
5993 list_for_each_entry_safe(lkb, safe, &proc->asts, lkb_cb_list) {
6003 static void purge_proc_locks(struct dlm_ls *ls, struct dlm_user_proc *proc)
6009 spin_lock(&proc->locks_spin);
6010 if (!list_empty(&proc->locks)) {
6011 lkb = list_entry(proc->locks.next, struct dlm_lkb,
6015 spin_unlock(&proc->locks_spin);
6022 dlm_put_lkb(lkb); /* ref from proc->locks list */
6025 spin_lock(&proc->locks_spin);
6026 list_for_each_entry_safe(lkb, safe, &proc->unlocking, lkb_ownqueue) {
6031 spin_unlock(&proc->locks_spin);
6033 spin_lock(&proc->asts_spin);
6034 list_for_each_entry_safe(lkb, safe, &proc->asts, lkb_cb_list) {
6039 spin_unlock(&proc->asts_spin);
6075 int dlm_user_purge(struct dlm_ls *ls, struct dlm_user_proc *proc,
6085 purge_proc_locks(ls, proc);