public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Converting ia64 kernel unwinder to lock free code
@ 2004-10-22  4:25 Keith Owens
  2004-10-22  7:30 ` David Mosberger
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Owens @ 2004-10-22  4:25 UTC (permalink / raw)
  To: linux-ia64

MCA and INIT events are not irq safe, they can interrupt the kernel at
any point, including with spin_lock_irqsave() set.  We currently call
the ia64 kernel unwinder from MCA and INIT handlers, which has the
potential to deadlock or to return invalid results.  I want to convert
the kernel unwinder to be lock free, so it can be called from any
state.  That means no locks, and no calls to kernel sevices that might
deadlock, including printk and kmalloc.

Before I start on this task, are there any other plans for the kernel
unwinder code?  In the past davidm has hinted at replacing it with
libunwind.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Converting ia64 kernel unwinder to lock free code
  2004-10-22  4:25 Converting ia64 kernel unwinder to lock free code Keith Owens
@ 2004-10-22  7:30 ` David Mosberger
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2004-10-22  7:30 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Fri, 22 Oct 2004 14:25:55 +1000, Keith Owens <kaos@sgi.com> said:

  Keith> Before I start on this task, are there any other plans for
  Keith> the kernel unwinder code?  In the past davidm has hinted at
  Keith> replacing it with libunwind.

I definitely want to do that.  I'm not sure you can make it entirely
lock-free with caching enabled, but libunwind already works such that
if the lock is already taken, it bypasses the cache and hence doesn't
need to acquire the lock.

	--david

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-22  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-22  4:25 Converting ia64 kernel unwinder to lock free code Keith Owens
2004-10-22  7:30 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox