[lkml]   [2003]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: linux hangs with printk on schedule()
    On Mon, 2003-02-03 at 19:35, Haoqiang Zheng wrote:

    > I found Linux hangs when printk is inserted to the function schedule().
    > Sure, it doesn't make much sense to add such a line to schedule(). But Linux
    > shouldn't hang anyway, right? It's assumed that printk can be inserted
    > safely to anywhere. So, is it a bug of Linux?

    Its a known deadlock in 2.4:

    schedule -> printk() -> dmesg output -> klogd wakes up -> repeat

    It is not a hard fix and its basically one of a few places where you
    cannot call printk(), which is otherwise a very robust funciton.

    Robert Love

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:32    [W:0.028 / U:1.496 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site