Lines Matching refs:undo_list
200 * * undo_list->lock for write
1839 /* If the task doesn't already have a undo_list, then allocate one
1852 struct sem_undo_list *undo_list;
1854 undo_list = current->sysvsem.undo_list;
1855 if (!undo_list) {
1856 undo_list = kzalloc(sizeof(*undo_list), GFP_KERNEL_ACCOUNT);
1857 if (undo_list == NULL)
1859 spin_lock_init(&undo_list->lock);
1860 refcount_set(&undo_list->refcnt, 1);
1861 INIT_LIST_HEAD(&undo_list->list_proc);
1863 current->sysvsem.undo_list = undo_list;
1865 *undo_listp = undo_list;
2308 struct sem_undo_list *undo_list;
2312 error = get_undo_list(&undo_list);
2315 refcount_inc(&undo_list->refcnt);
2316 tsk->sysvsem.undo_list = undo_list;
2318 tsk->sysvsem.undo_list = NULL;
2339 ulp = tsk->sysvsem.undo_list;
2342 tsk->sysvsem.undo_list = NULL;