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

Dave Hansen (haveblue@us.ibm.com)
Fri, 04 Oct 2002 13:12:58 -0700


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/