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