Lines Matching defs:ulp
151 struct sem_undo_list *ulp; /* back ptr to sem_undo_list */
1153 spin_lock(&un->ulp->lock);
1156 spin_unlock(&un->ulp->lock);
1868 static struct sem_undo *__lookup_undo(struct sem_undo_list *ulp, int semid)
1872 list_for_each_entry_rcu(un, &ulp->list_proc, list_proc,
1873 spin_is_locked(&ulp->lock)) {
1880 static struct sem_undo *lookup_undo(struct sem_undo_list *ulp, int semid)
1884 assert_spin_locked(&ulp->lock);
1886 un = __lookup_undo(ulp, semid);
1889 list_add_rcu(&un->list_proc, &ulp->list_proc);
1908 struct sem_undo_list *ulp;
1912 error = get_undo_list(&ulp);
1917 spin_lock(&ulp->lock);
1918 un = lookup_undo(ulp, semid);
1919 spin_unlock(&ulp->lock);
1956 spin_lock(&ulp->lock);
1961 un = lookup_undo(ulp, semid);
1968 new->ulp = ulp;
1970 assert_spin_locked(&ulp->lock);
1971 list_add_rcu(&new->list_proc, &ulp->list_proc);
1977 spin_unlock(&ulp->lock);
2318 struct sem_undo_list *ulp;
2320 ulp = tsk->sysvsem.undo_list;
2321 if (!ulp)
2325 if (!refcount_dec_and_test(&ulp->refcnt))
2337 un = list_entry_rcu(ulp->list_proc.next,
2339 if (&un->list_proc == &ulp->list_proc) {
2341 * We must wait for freeary() before freeing this ulp,
2346 spin_lock(&ulp->lock);
2347 spin_unlock(&ulp->lock);
2351 spin_lock(&ulp->lock);
2353 spin_unlock(&ulp->lock);
2375 un = __lookup_undo(ulp, semid);
2389 spin_lock(&ulp->lock);
2391 spin_unlock(&ulp->lock);
2426 kfree(ulp);