Message ID | cdc2d810557adb7ec3ab4e24cce3ffd8c128f16b.1582320278.git.zanussi@kernel.org |
---|---|
State | New |
Headers | show |
Series | [RT,01/25] Fix wrong-variable use in irq_set_affinity_notifier | expand |
diff --git a/arch/x86/include/asm/preempt.h b/arch/x86/include/asm/preempt.h index f66708779274..afa0e42ccdd1 100644 --- a/arch/x86/include/asm/preempt.h +++ b/arch/x86/include/asm/preempt.h @@ -96,6 +96,8 @@ static __always_inline bool __preempt_count_dec_and_test(void) if (____preempt_count_dec_and_test()) return true; #ifdef CONFIG_PREEMPT_LAZY + if (preempt_count()) + return false; if (current_thread_info()->preempt_lazy_count) return false; return test_thread_flag(TIF_NEED_RESCHED_LAZY);