Lines Matching full:ulp

151 	struct sem_undo_list	*ulp;		/* back ptr to sem_undo_list */  member
1155 spin_lock(&un->ulp->lock); in freeary()
1158 spin_unlock(&un->ulp->lock); in freeary()
1869 static struct sem_undo *__lookup_undo(struct sem_undo_list *ulp, int semid) in __lookup_undo() argument
1873 list_for_each_entry_rcu(un, &ulp->list_proc, list_proc, in __lookup_undo()
1874 spin_is_locked(&ulp->lock)) { in __lookup_undo()
1881 static struct sem_undo *lookup_undo(struct sem_undo_list *ulp, int semid) in lookup_undo() argument
1885 assert_spin_locked(&ulp->lock); in lookup_undo()
1887 un = __lookup_undo(ulp, semid); in lookup_undo()
1890 list_add_rcu(&un->list_proc, &ulp->list_proc); in lookup_undo()
1909 struct sem_undo_list *ulp; in find_alloc_undo() local
1913 error = get_undo_list(&ulp); in find_alloc_undo()
1918 spin_lock(&ulp->lock); in find_alloc_undo()
1919 un = lookup_undo(ulp, semid); in find_alloc_undo()
1920 spin_unlock(&ulp->lock); in find_alloc_undo()
1957 spin_lock(&ulp->lock); in find_alloc_undo()
1962 un = lookup_undo(ulp, semid); in find_alloc_undo()
1964 spin_unlock(&ulp->lock); in find_alloc_undo()
1969 new->ulp = ulp; in find_alloc_undo()
1971 assert_spin_locked(&ulp->lock); in find_alloc_undo()
1972 list_add_rcu(&new->list_proc, &ulp->list_proc); in find_alloc_undo()
1976 spin_unlock(&ulp->lock); in find_alloc_undo()
2337 struct sem_undo_list *ulp; in exit_sem() local
2339 ulp = tsk->sysvsem.undo_list; in exit_sem()
2340 if (!ulp) in exit_sem()
2344 if (!refcount_dec_and_test(&ulp->refcnt)) in exit_sem()
2356 un = list_entry_rcu(ulp->list_proc.next, in exit_sem()
2358 if (&un->list_proc == &ulp->list_proc) { in exit_sem()
2360 * We must wait for freeary() before freeing this ulp, in exit_sem()
2365 spin_lock(&ulp->lock); in exit_sem()
2366 spin_unlock(&ulp->lock); in exit_sem()
2370 spin_lock(&ulp->lock); in exit_sem()
2372 spin_unlock(&ulp->lock); in exit_sem()
2394 un = __lookup_undo(ulp, semid); in exit_sem()
2408 spin_lock(&ulp->lock); in exit_sem()
2410 spin_unlock(&ulp->lock); in exit_sem()
2445 kfree(ulp); in exit_sem()