[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ba7d8f720804201746x60ff3ee3o415c60de96d897b6@mail.gmail.com>
Date: Sun, 20 Apr 2008 20:46:53 -0400
From: "Dan Upton" <upton.dan.linux@...il.com>
To: linux-kernel@...r.kernel.org
Subject: Re: migration thread and active_load_balance
> >
> > Anyway, like I said, I've spent several days trying to understand this
> > error by putting in printk()s galore and doing traces through the
>
> That might be obvious, but are you aware that printks inside
> the scheduler can lead to deadlocks? printk when the buffer
> is full calls wake_up and that calls the scheduler. So for
> debugging the scheduler you need some other way to get
> the information out.
>
> -Andi
>
Yes, I've read that printk can cause deadlocks, although I get the
deadlocks without printks as well. Also, I found a modification on
kerneltrap (http://kerneltrap.org/mailarchive/linux-kernel/2008/1/23/595569)
that seems to a decent job of preventing deadlocks due to printk, at
least in my case (I see in the comments on that thread though that
it's not perfect).
-dan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists