lkml.org 
[lkml]   [2004]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] Spinlock timeout
On Tue, 6 Jul 2004 14:43:14 -0600
jmerkey@galt.devicelogics.com wrote:

>
>
> You should also for the UP case of Linux keep a counter
> and call BUG() when someone calls a spinlock twice rather than
> just push, cli, and pop interrupt flags. Guess what, this
> allows you to catch most deadlock bugs with spinlocks

Isn't this what CONFIG_DEBUG_SPINLOCK is for?

Thanks,
Jake
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.563 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site