diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -916,12 +916,7 @@ no_thread_group: | |||
916 | 916 | ||
917 | write_lock_irq(&tasklist_lock); | 917 | write_lock_irq(&tasklist_lock); |
918 | spin_lock(&oldsighand->siglock); | 918 | spin_lock(&oldsighand->siglock); |
919 | spin_lock_nested(&newsighand->siglock, SINGLE_DEPTH_NESTING); | ||
920 | |||
921 | rcu_assign_pointer(tsk->sighand, newsighand); | 919 | rcu_assign_pointer(tsk->sighand, newsighand); |
922 | recalc_sigpending(); | ||
923 | |||
924 | spin_unlock(&newsighand->siglock); | ||
925 | spin_unlock(&oldsighand->siglock); | 920 | spin_unlock(&oldsighand->siglock); |
926 | write_unlock_irq(&tasklist_lock); | 921 | write_unlock_irq(&tasklist_lock); |
927 | 922 | ||
@@ -931,12 +926,11 @@ no_thread_group: | |||
931 | BUG_ON(!thread_group_leader(tsk)); | 926 | BUG_ON(!thread_group_leader(tsk)); |
932 | return 0; | 927 | return 0; |
933 | } | 928 | } |
934 | 929 | ||
935 | /* | 930 | /* |
936 | * These functions flushes out all traces of the currently running executable | 931 | * These functions flushes out all traces of the currently running executable |
937 | * so that a new one can be started | 932 | * so that a new one can be started |
938 | */ | 933 | */ |
939 | |||
940 | static void flush_old_files(struct files_struct * files) | 934 | static void flush_old_files(struct files_struct * files) |
941 | { | 935 | { |
942 | long j = -1; | 936 | long j = -1; |