Re: allow recursive die() on i386

From: Arjan van de Ven
Date: Wed Jul 28 2004 - 08:32:20 EST


On Wed, 2004-07-28 at 15:11, Keith Owens wrote:
> On Wed, 28 Jul 2004 08:35:39 -0400,
> Jeff Moyer <jmoyer@xxxxxxxxxx> wrote:
> >This patch allows for a recursive die() on i386. This closely resembles
> >what is done on x86_64, fwiw.
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.8-rc2/2.6.8-rc2-mm1/broken-out/make-i386-die-more-resilient-against-recursive-errors.patch
>
> does this and more, it also guards against too many recursive calls to
> die. The patch is already in Andrew's tree.
+ static struct {
+ spinlock_t lock;
+ u32 lock_owner;
+ int lock_owner_depth;
+ } die = {
+ .lock = SPIN_LOCK_UNLOCKED,
+ .lock_owner = -1,
+ .lock_owner_depth = 0
+ };


humm... am I the only one who considers this a little bit ugly ???

Attachment: signature.asc
Description: This is a digitally signed message part