Skip to contentSkip to conversation

fault-inject-use-correct-check-for-interrupts.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 9, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/fault-inject.c: use correct check for interrupts
has been removed from the -mm tree. Its filename was
fault-inject-use-correct-check-for-interrupts.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Dmitry Vyukov <[email protected]>
Subject: lib/fault-inject.c: use correct check for interrupts

in_interrupt() also returns true when bh is disabled in task context. That's not what fail_task() wants to check. Use the new in_task() predicate that does the right thing.

---

 lib/fault-inject.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/fault-inject.c renamed from lib/fault-inject.c~fault-inject-use-correct-check-for-interrupts +1 -1
diff -puN lib/fault-inject.c~fault-inject-use-correct-check-for-interrupts lib/fault-inject.c
@@ -56,7 +56,7 @@ static void fail_dump(struct fault_attr
 
 static bool fail_task(struct fault_attr *attr, struct task_struct *task)
 {
-	return !in_interrupt() && task->make_it_fail;
+	return in_task() && task->make_it_fail;
 }
 
 #define MAX_STACK_TRACE_DEPTH 32

_

Patches currently in -mm which might be from [email protected] are

fault-inject-support-systematic-fault-injection.patch