Lines Matching defs:ulp
151 struct sem_undo_list *ulp; /* back ptr to sem_undo_list */
1182 spin_lock(&un->ulp->lock);
1185 spin_unlock(&un->ulp->lock);
1911 static struct sem_undo *__lookup_undo(struct sem_undo_list *ulp, int semid)
1915 list_for_each_entry_rcu(un, &ulp->list_proc, list_proc, spin_is_locked(&ulp->lock))
1924 static struct sem_undo *lookup_undo(struct sem_undo_list *ulp, int semid)
1928 assert_spin_locked(&ulp->lock);
1930 un = __lookup_undo(ulp, semid);
1933 list_add_rcu(&un->list_proc, &ulp->list_proc);
1952 struct sem_undo_list *ulp;
1956 error = get_undo_list(&ulp);
1962 spin_lock(&ulp->lock);
1963 un = lookup_undo(ulp, semid);
1964 spin_unlock(&ulp->lock);
2002 spin_lock(&ulp->lock);
2007 un = lookup_undo(ulp, semid);
2014 new->ulp = ulp;
2016 assert_spin_locked(&ulp->lock);
2017 list_add_rcu(&new->list_proc, &ulp->list_proc);
2023 spin_unlock(&ulp->lock);
2376 struct sem_undo_list *ulp;
2378 ulp = tsk->sysvsem.undo_list;
2379 if (!ulp) {
2384 if (!refcount_dec_and_test(&ulp->refcnt)) {
2397 un = list_entry_rcu(ulp->list_proc.next, struct sem_undo, list_proc);
2398 if (&un->list_proc == &ulp->list_proc) {
2400 * We must wait for freeary() before freeing this ulp,
2405 spin_lock(&ulp->lock);
2406 spin_unlock(&ulp->lock);
2410 spin_lock(&ulp->lock);
2412 spin_unlock(&ulp->lock);
2434 un = __lookup_undo(ulp, semid);
2448 spin_lock(&ulp->lock);
2450 spin_unlock(&ulp->lock);
2487 kfree(ulp);