diff options
| author | David S. Miller <davem@davemloft.net> | 2012-10-02 23:02:10 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-10-02 23:02:10 -0400 |
| commit | 954f9ac43b87b44152b8c21163cefd466a87145e (patch) | |
| tree | 31c4197f975c66c96976948663e6ce844900b41a /kernel/signal.c | |
| parent | 1b62ca7bf5775bed048032b7e779561e1fe66aa0 (diff) | |
| parent | 7fe0b14b725d6d09a1d9e1409bd465cb88b587f9 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
There's a Niagara 2 memcpy fix in this tree and I have
a Kconfig fix from Dave Jones which requires the sparc-next
changes which went upstream yesterday.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/signal.c')
| -rw-r--r-- | kernel/signal.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index be4f856d52f8..2c681f11b7d2 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
| @@ -1971,13 +1971,8 @@ static void ptrace_do_notify(int signr, int exit_code, int why) | |||
| 1971 | void ptrace_notify(int exit_code) | 1971 | void ptrace_notify(int exit_code) |
| 1972 | { | 1972 | { |
| 1973 | BUG_ON((exit_code & (0x7f | ~0xffff)) != SIGTRAP); | 1973 | BUG_ON((exit_code & (0x7f | ~0xffff)) != SIGTRAP); |
| 1974 | if (unlikely(current->task_works)) { | 1974 | if (unlikely(current->task_works)) |
| 1975 | if (test_and_clear_ti_thread_flag(current_thread_info(), | 1975 | task_work_run(); |
| 1976 | TIF_NOTIFY_RESUME)) { | ||
| 1977 | smp_mb__after_clear_bit(); | ||
| 1978 | task_work_run(); | ||
| 1979 | } | ||
| 1980 | } | ||
| 1981 | 1976 | ||
| 1982 | spin_lock_irq(¤t->sighand->siglock); | 1977 | spin_lock_irq(¤t->sighand->siglock); |
| 1983 | ptrace_do_notify(SIGTRAP, exit_code, CLD_TRAPPED); | 1978 | ptrace_do_notify(SIGTRAP, exit_code, CLD_TRAPPED); |
| @@ -2198,13 +2193,8 @@ int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka, | |||
| 2198 | struct signal_struct *signal = current->signal; | 2193 | struct signal_struct *signal = current->signal; |
| 2199 | int signr; | 2194 | int signr; |
| 2200 | 2195 | ||
| 2201 | if (unlikely(current->task_works)) { | 2196 | if (unlikely(current->task_works)) |
| 2202 | if (test_and_clear_ti_thread_flag(current_thread_info(), | 2197 | task_work_run(); |
| 2203 | TIF_NOTIFY_RESUME)) { | ||
| 2204 | smp_mb__after_clear_bit(); | ||
| 2205 | task_work_run(); | ||
| 2206 | } | ||
| 2207 | } | ||
| 2208 | 2198 | ||
| 2209 | if (unlikely(uprobe_deny_signal())) | 2199 | if (unlikely(uprobe_deny_signal())) |
| 2210 | return 0; | 2200 | return 0; |
