Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257007
b: refs/heads/master
c: 693a8b6
h: refs/heads/master
i:
  257005: b03d69d
  257003: 00eb0c8
  256999: 4c3e610
  256991: 0abe053
v: v3
  • Loading branch information
Lai Jiangshan authored and Paul E. McKenney committed Jul 20, 2011
1 parent 14f929c commit c55f8dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 449a68cc656fddeda448e324c57062a19cf451b9
refs/heads/master: 693a8b6eecce1a0cfe91a469e85c56016dc1cc53
10 changes: 2 additions & 8 deletions trunk/ipc/sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,6 @@ static int count_semzcnt (struct sem_array * sma, ushort semnum)
return semzcnt;
}

static void free_un(struct rcu_head *head)
{
struct sem_undo *un = container_of(head, struct sem_undo, rcu);
kfree(un);
}

/* Free a semaphore set. freeary() is called with sem_ids.rw_mutex locked
* as a writer and the spinlock for this semaphore set hold. sem_ids.rw_mutex
* remains locked on exit.
Expand All @@ -714,7 +708,7 @@ static void freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp)
un->semid = -1;
list_del_rcu(&un->list_proc);
spin_unlock(&un->ulp->lock);
call_rcu(&un->rcu, free_un);
kfree_rcu(un, rcu);
}

/* Wake up all pending processes and let them fail with EIDRM. */
Expand Down Expand Up @@ -1612,7 +1606,7 @@ void exit_sem(struct task_struct *tsk)
sem_unlock(sma);
wake_up_sem_queue_do(&tasks);

call_rcu(&un->rcu, free_un);
kfree_rcu(un, rcu);
}
kfree(ulp);
}
Expand Down

0 comments on commit c55f8dc

Please sign in to comment.