Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288237
b: refs/heads/master
c: 57b59c4
h: refs/heads/master
i:
  288235: 2b27751
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Mar 5, 2012
1 parent b453319 commit f6a61d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 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: d68b46fe16ad59b3a5f51ec73daaa5dc06753798
refs/heads/master: 57b59c4a1400fa6c34764eab2e35a8762dc05a09
14 changes: 2 additions & 12 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1926,19 +1926,9 @@ static int coredump_wait(int exit_code, struct core_state *core_state)
core_waiters = zap_threads(tsk, mm, core_state, exit_code);
up_write(&mm->mmap_sem);

if (unlikely(core_waiters < 0))
goto fail;

/*
* Make sure nobody is waiting for us to release the VM,
* otherwise we can deadlock when we wait on each other
*/
if (tsk->vfork_done)
complete_vfork_done(tsk);

if (core_waiters)
if (core_waiters > 0)
wait_for_completion(&core_state->startup);
fail:

return core_waiters;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -2291,7 +2291,6 @@ extern int do_execve(const char *,
const char __user * const __user *,
const char __user * const __user *, struct pt_regs *);
extern long do_fork(unsigned long, unsigned long, struct pt_regs *, unsigned long, int __user *, int __user *);
extern void complete_vfork_done(struct task_struct *tsk);
struct task_struct *fork_idle(int);

extern void set_task_comm(struct task_struct *tsk, char *from);
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
return mm;
}

void complete_vfork_done(struct task_struct *tsk)
static void complete_vfork_done(struct task_struct *tsk)
{
struct completion *vfork;

Expand Down

0 comments on commit f6a61d4

Please sign in to comment.