VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Thomas Gleixner <tglx@linutronix.de> 2011-09-21 19:57:12 +0200 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:46 +0800 commit: 54ca7fd6b0707c7dec1b31a3f19be30b712d48b0 parent: bbbf5ba156221be05040f452f84b7e9793516166
Commit Summary:
signal: Revert ptrace preempt magic
Diffstat:
1 file changed, 0 insertions, 8 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 487bf4f5dadf..30610b3865c2 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -2275,16 +2275,8 @@ static void ptrace_stop(int exit_code, int why, int clear_code, kernel_siginfo_t
 		if (gstop_done && ptrace_reparented(current))
 			do_notify_parent_cldstop(current, false, why);
 
-		/*
-		 * Don't want to allow preemption here, because
-		 * sys_ptrace() needs this task to be inactive.
-		 *
-		 * XXX: implement read_unlock_no_resched().
-		 */
-		preempt_disable();
 		read_unlock(&tasklist_lock);
 		cgroup_enter_frozen();
-		preempt_enable_no_resched();
 		freezable_schedule();
 		cgroup_leave_frozen(true);
 	} else {