mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Haoqiang Zheng" <hzheng@cs.columbia.edu>
To: <linux-kernel@vger.kernel.org>
Subject: linux hangs with printk on schedule()
Date: Mon, 3 Feb 2003 19:35:16 -0500	[thread overview]
Message-ID: <05db01c2cbe5$4b4c34f0$9c2a3b80@zhengthinkpad> (raw)

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?

The linux I am running is 2.4.18-14, the same version used by Redhat 8.0.
The scheduler is Ingo's O(1) scheduler.


Here is a fragment of the code
****************************************************************
 switch (prev->state) {
     ------
     default:
            printk("deactivating task pid=%d
comm=%s\n",prev->pid,prev->comm);
             deactivate_task(prev, rq);
  }
******************************************************************


             reply	other threads:[~2003-02-04  0:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-04  0:35 Haoqiang Zheng [this message]
2003-02-04  0:43 ` Robert Love
     [not found] <05db01c2cbe5$4b4c34f0$9c2a3b80@zhengthinkpad.suse.lists.linux.kernel>
2003-02-04  0:48 ` Andi Kleen
2003-02-05  3:01 Haoqiang Zheng
2003-02-06  2:18 ` Rick Lindsley

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='05db01c2cbe5$4b4c34f0$9c2a3b80@zhengthinkpad' \
    --to=hzheng@cs.columbia.edu \
    --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®