Skip to content

Commit

Permalink
don't call try_to_freeze() from do_signal()
Browse files Browse the repository at this point in the history
get_signal_to_deliver() will handle it itself

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 1, 2012
1 parent a610d6e commit bf343df
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 28 deletions.
4 changes: 0 additions & 4 deletions arch/blackfin/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,13 @@ asmlinkage void do_signal(struct pt_regs *regs)

current->thread.esp0 = (unsigned long)regs;

if (try_to_freeze())
goto no_signal;

signr = get_signal_to_deliver(&info, &ka, regs, NULL);
if (signr > 0) {
/* Whee! Actually deliver the signal. */
handle_signal(signr, &info, &ka, regs);
return;
}

no_signal:
/* Did we come from a system call? */
if (regs->orig_p0 >= 0)
/* Restart the system call - no handlers present */
Expand Down
4 changes: 0 additions & 4 deletions arch/frv/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,16 +491,12 @@ static void do_signal(void)
if (!user_mode(__frame))
return;

if (try_to_freeze())
goto no_signal;

signr = get_signal_to_deliver(&info, &ka, __frame, NULL);
if (signr > 0) {
handle_signal(signr, &info, &ka);
return;
}

no_signal:
/* Did we come from a system call? */
if (__frame->syscallno != -1) {
/* Restart the system call - no handlers present */
Expand Down
4 changes: 0 additions & 4 deletions arch/h8300/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,6 @@ statis void do_signal(struct pt_regs *regs)
if ((regs->ccr & 0x10))
return;

if (try_to_freeze())
goto no_signal;

current->thread.esp0 = (unsigned long) regs;

signr = get_signal_to_deliver(&info, &ka, regs, NULL);
Expand All @@ -477,7 +474,6 @@ statis void do_signal(struct pt_regs *regs)
handle_signal(signr, &info, &ka, regs);
return;
}
no_signal:
/* Did we come from a system call? */
if (regs->orig_er0 >= 0) {
/* Restart the system call - no handlers present */
Expand Down
4 changes: 0 additions & 4 deletions arch/hexagon/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,13 @@ static void do_signal(struct pt_regs *regs)
if (!user_mode(regs))
return;

if (try_to_freeze())
goto no_signal;

signo = get_signal_to_deliver(&info, &sigact, regs, NULL);

if (signo > 0) {
handle_signal(signo, &info, &sigact, regs);
return;
}

no_signal:
/*
* If we came from a system call, handle the restart.
*/
Expand Down
4 changes: 0 additions & 4 deletions arch/m32r/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ static void do_signal(struct pt_regs *regs)
if (!user_mode(regs))
return;

if (try_to_freeze())
goto no_signal;

signr = get_signal_to_deliver(&info, &ka, regs, NULL);
if (signr > 0) {
/* Re-enable any watchpoints before delivering the
Expand All @@ -337,7 +334,6 @@ static void do_signal(struct pt_regs *regs)
return;
}

no_signal:
/* Did we come from a system call? */
if (regs->syscall_nr >= 0) {
/* Restart the system call - no handlers present */
Expand Down
4 changes: 0 additions & 4 deletions arch/unicore32/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,16 +396,12 @@ static void do_signal(struct pt_regs *regs, int syscall)
if (!user_mode(regs))
return;

if (try_to_freeze())
goto no_signal;

signr = get_signal_to_deliver(&info, &ka, regs, NULL);
if (signr > 0) {
handle_signal(signr, &ka, &info, regs, syscall);
return;
}

no_signal:
/*
* No signal to deliver to the process - restart the syscall.
*/
Expand Down
4 changes: 0 additions & 4 deletions arch/xtensa/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,6 @@ static void do_signal(struct pt_regs *regs)
int signr;
struct k_sigaction ka;

if (try_to_freeze())
goto no_signal;

task_pt_regs(current)->icountlevel = 0;

signr = get_signal_to_deliver(&info, &ka, regs, NULL);
Expand Down Expand Up @@ -506,7 +503,6 @@ static void do_signal(struct pt_regs *regs)
return;
}

no_signal:
/* Did we come from a system call? */
if ((signed) regs->syscall >= 0) {
/* Restart the system call - no handlers present */
Expand Down

0 comments on commit bf343df

Please sign in to comment.