Re: Possible dcache BUG

From: Martin J. Bligh
Date: Wed Aug 25 2004 - 12:37:49 EST


--Ryan Cumming <ryan@xxxxxxxxxxxxxxxxxxx> wrote (on Wednesday, August 25, 2004 10:23:29 -0700):

> On Wednesday 25 August 2004 07:55, Martin J. Bligh wrote:
>> This whole thread makes me think ... if we oops, shouldn't we check if
>> we're holding any spinlocks or semaphores, and just panic the whole
>> machine if so? Not sure how expensive it would be to hold that state,
>> but ...
>
> On preempt, wouldn't it just be a matter of checking preempt_count?

Spinlocks, with or without preeempt, can probably do something like this.
But I don't think that works for sems.

M.

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