From: Arjan van de Ven <arjanv@redhat.com>
To: Keith Owens <kaos@ocs.com.au>
Cc: jmoyer@redhat.com, linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: allow recursive die() on i386
Date: Wed, 28 Jul 2004 15:30:30 +0200 [thread overview]
Message-ID: <1091021430.2795.28.camel@laptop.fenrus.com> (raw)
In-Reply-To: <9424.1091020297@ocs3.ocs.com.au>
[-- Attachment #1: Type: text/plain, Size: 791 bytes --]
On Wed, 2004-07-28 at 15:11, Keith Owens wrote:
> On Wed, 28 Jul 2004 08:35:39 -0400,
> Jeff Moyer <jmoyer@redhat.com> 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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2004-07-28 13:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-28 12:35 Jeff Moyer
2004-07-28 13:11 ` Keith Owens
2004-07-28 13:30 ` Arjan van de Ven [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1091021430.2795.28.camel@laptop.fenrus.com \
--to=arjanv@redhat.com \
--cc=akpm@osdl.org \
--cc=jmoyer@redhat.com \
--cc=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®