Lines Matching refs:ua
5786 int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua, in dlm_user_request() argument
5798 kfree(ua); in dlm_user_request()
5803 ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_NOFS); in dlm_user_request()
5804 if (!ua->lksb.sb_lvbptr) { in dlm_user_request()
5805 kfree(ua); in dlm_user_request()
5811 error = set_lock_args(mode, &ua->lksb, flags, namelen, timeout_cs, in dlm_user_request()
5812 fake_astfn, ua, fake_bastfn, &args); in dlm_user_request()
5814 kfree(ua->lksb.sb_lvbptr); in dlm_user_request()
5815 ua->lksb.sb_lvbptr = NULL; in dlm_user_request()
5816 kfree(ua); in dlm_user_request()
5842 spin_lock(&ua->proc->locks_spin); in dlm_user_request()
5844 list_add_tail(&lkb->lkb_ownqueue, &ua->proc->locks); in dlm_user_request()
5845 spin_unlock(&ua->proc->locks_spin); in dlm_user_request()
5857 struct dlm_user_args *ua; in dlm_user_convert() local
5869 ua = lkb->lkb_ua; in dlm_user_convert()
5871 if (flags & DLM_LKF_VALBLK && !ua->lksb.sb_lvbptr) { in dlm_user_convert()
5872 ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_NOFS); in dlm_user_convert()
5873 if (!ua->lksb.sb_lvbptr) { in dlm_user_convert()
5878 if (lvb_in && ua->lksb.sb_lvbptr) in dlm_user_convert()
5879 memcpy(ua->lksb.sb_lvbptr, lvb_in, DLM_USER_LVB_LEN); in dlm_user_convert()
5881 ua->xid = ua_tmp->xid; in dlm_user_convert()
5882 ua->castparam = ua_tmp->castparam; in dlm_user_convert()
5883 ua->castaddr = ua_tmp->castaddr; in dlm_user_convert()
5884 ua->bastparam = ua_tmp->bastparam; in dlm_user_convert()
5885 ua->bastaddr = ua_tmp->bastaddr; in dlm_user_convert()
5886 ua->user_lksb = ua_tmp->user_lksb; in dlm_user_convert()
5888 error = set_lock_args(mode, &ua->lksb, flags, 0, timeout_cs, in dlm_user_convert()
5889 fake_astfn, ua, fake_bastfn, &args); in dlm_user_convert()
5916 struct dlm_user_args *ua; in dlm_user_adopt_orphan() local
5952 ua = lkb->lkb_ua; in dlm_user_adopt_orphan()
5954 ua->proc = ua_tmp->proc; in dlm_user_adopt_orphan()
5955 ua->xid = ua_tmp->xid; in dlm_user_adopt_orphan()
5956 ua->castparam = ua_tmp->castparam; in dlm_user_adopt_orphan()
5957 ua->castaddr = ua_tmp->castaddr; in dlm_user_adopt_orphan()
5958 ua->bastparam = ua_tmp->bastparam; in dlm_user_adopt_orphan()
5959 ua->bastaddr = ua_tmp->bastaddr; in dlm_user_adopt_orphan()
5960 ua->user_lksb = ua_tmp->user_lksb; in dlm_user_adopt_orphan()
5968 spin_lock(&ua->proc->locks_spin); in dlm_user_adopt_orphan()
5969 list_add_tail(&lkb->lkb_ownqueue, &ua->proc->locks); in dlm_user_adopt_orphan()
5970 spin_unlock(&ua->proc->locks_spin); in dlm_user_adopt_orphan()
5981 struct dlm_user_args *ua; in dlm_user_unlock() local
5990 ua = lkb->lkb_ua; in dlm_user_unlock()
5992 if (lvb_in && ua->lksb.sb_lvbptr) in dlm_user_unlock()
5993 memcpy(ua->lksb.sb_lvbptr, lvb_in, DLM_USER_LVB_LEN); in dlm_user_unlock()
5995 ua->castparam = ua_tmp->castparam; in dlm_user_unlock()
5996 ua->user_lksb = ua_tmp->user_lksb; in dlm_user_unlock()
5998 error = set_unlock_args(flags, ua, &args); in dlm_user_unlock()
6012 spin_lock(&ua->proc->locks_spin); in dlm_user_unlock()
6015 list_move(&lkb->lkb_ownqueue, &ua->proc->unlocking); in dlm_user_unlock()
6016 spin_unlock(&ua->proc->locks_spin); in dlm_user_unlock()
6030 struct dlm_user_args *ua; in dlm_user_cancel() local
6039 ua = lkb->lkb_ua; in dlm_user_cancel()
6041 ua->castparam = ua_tmp->castparam; in dlm_user_cancel()
6042 ua->user_lksb = ua_tmp->user_lksb; in dlm_user_cancel()
6044 error = set_unlock_args(flags, ua, &args); in dlm_user_cancel()
6067 struct dlm_user_args *ua; in dlm_user_deadlock() local
6077 ua = lkb->lkb_ua; in dlm_user_deadlock()
6079 error = set_unlock_args(flags, ua, &args); in dlm_user_deadlock()