From 70da3df38bd9834934ece0a87fa43fdd8c688da4 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Mon, 24 Mar 2014 22:51:43 +0000 Subject: [PATCH] Drop CPU_DTRACE_NOFAULT manipulation in progenyof(). This is only doing a traversal of task_structs via real_parent. This is nonswappable, so faults are impossible, and blocking faults unnecessary. Orabug: 18412802 Signed-off-by: Nick Alcock Reviewed-by: Kris Van Hees Acked-by: Chuck Anderson --- dtrace/dtrace_dif.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dtrace/dtrace_dif.c b/dtrace/dtrace_dif.c index 772e32e6c2cf..928e9ed94014 100644 --- a/dtrace/dtrace_dif.c +++ b/dtrace/dtrace_dif.c @@ -2645,8 +2645,6 @@ static void dtrace_dif_subr(uint_t subr, uint_t rd, uint64_t *regs, struct task_struct *p; int rval = 0; - DTRACE_CPUFLAG_SET(CPU_DTRACE_NOFAULT); - for (p = current; p != NULL; p = p->real_parent) { if (p->pid == pid) { rval = 1; @@ -2657,8 +2655,6 @@ static void dtrace_dif_subr(uint_t subr, uint_t rd, uint64_t *regs, break; } - DTRACE_CPUFLAG_CLEAR(CPU_DTRACE_NOFAULT); - regs[rd] = rval; break; } -- 2.50.1