Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176702
b: refs/heads/master
c: 417e315
h: refs/heads/master
v: v3
  • Loading branch information
André Goddard Rosa authored and Linus Torvalds committed Dec 16, 2009
1 parent fff5303 commit 4030085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 7be6d991bca63bbcdc5bc3b09789f367a3486537
refs/heads/master: 417e315247ebc199d357855bb08d2a5264400565
5 changes: 2 additions & 3 deletions trunk/kernel/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,11 @@ struct pid *alloc_pid(struct pid_namespace *ns)
for (type = 0; type < PIDTYPE_MAX; ++type)
INIT_HLIST_HEAD(&pid->tasks[type]);

upid = pid->numbers + ns->level;
spin_lock_irq(&pidmap_lock);
for (i = ns->level; i >= 0; i--) {
upid = &pid->numbers[i];
for ( ; upid >= pid->numbers; --upid)
hlist_add_head_rcu(&upid->pid_chain,
&pid_hash[pid_hashfn(upid->nr, upid->ns)]);
}
spin_unlock_irq(&pidmap_lock);

out:
Expand Down

0 comments on commit 4030085

Please sign in to comment.