Re: [PATCH] 4KB stack + irq stack for x86

From: Dave Hansen (haveblue@us.ibm.com)
Date: Fri Oct 04 2002 - 15:12:58 EST


Dave Hansen wrote:
> I fixed the problems that I was having. thread_info->preempt_count is
> now used to store softirq state, unlike in 2.5.20. Preempt count was
> not preserved once the switch to the interrupt stack occurred. This
> caused two nested softirqs and a deadlock. It is fixed now.

That'll teach me to get excited and send a patch. Sorry about the
"Only in"'s. I also think that there is still a small race window in
the code that I sent. I think that the old preempt_count need to be
placed into the new thread_info's preempt_count _before_ the stack
switch occurs.

-- 
Dave Hansen
haveblue@us.ibm.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:47 EST