Skip to contentSkip to conversation

irqlock patch 2.5.27-H4

PATCH Oleg Nesterov 1 participant 1 message Jul 26, 2002

lore
Share & tools
lore
#0 lore raw

Hello.

Review

Quoted 3 lines · Oleg Nesterov
(quoted diff) +2 -0
+       irq_enter();
        (*func)(info);
+       irq_exit();

It is better to update call_data->finished before
doing soft irqs in irq_exit().

Against 2.5.28:

i386/kernel/smp.c renamed from i386/kernel/smp.c~ +2 -0
@@ -646,10 +646,12 @@
 	/*
 	 * At this point the info structure may be out of scope unless wait==1
 	 */
+	irq_enter();
 	(*func)(info);
 	if (wait) {
 		mb();
 		atomic_inc(&call_data->finished);
 	}
+	irq_exit();
 }
 
i386/kernel/entry.S renamed from i386/kernel/entry.S~ +0 -1
@@ -417,7 +417,6 @@
 ENTRY(device_not_available)
 	pushl $-1			# mark this as an int
 	SAVE_ALL
-	GET_THREAD_INFO(%ebx)
 	movl %cr0, %eax
 	testl $0x4, %eax		# EM (math emulation bit)
 	jne device_not_available_emulate

Oleg.