> And also your reasoning about smp_processor_id() sounds strange, > preemption code must reschedule thread preemted in the kernel to the > same cpu, it is enough to avoid troubles with this. It's unfortunately the truth. Even in_interrupt() is buggy current on SMP preemptive. -Andi - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html