LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "qinghuang feng" <qhfeng.kernel@gmail.com>
To: "Ingo Molnar" <mingo@elte.hu>
Cc: sniper <s3c24xx@gmail.com>,
	mingo@redhat.com, peterz@infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] LOCKDEP: minor fix for debug_show_all_locks()
Date: Tue, 28 Oct 2008 17:24:28 +0800	[thread overview]
Message-ID: <21d34cad0810280224t7382c419k95ff89750caef6b2@mail.gmail.com> (raw)
In-Reply-To: <20081028082920.GK15734@elte.hu>

When we failed to get tasklist_lock eventually (count equals 0),
we should only print " ignoring it.\n", and not print
" locked it.\n" needlessly.

Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
---
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index dbda475..6533fd9 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -3417,8 +3417,7 @@ retry:
 		}
 		printk(" ignoring it.\n");
 		unlock = 0;
-	}
-	if (count != 10)
+	} else if (count != 10)
 		printk(" locked it.\n");

 	do_each_thread(g, p) {

  reply	other threads:[~2008-10-28  9:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27 20:03 sniper
2008-10-28  8:29 ` Ingo Molnar
2008-10-28  9:24   ` qinghuang feng [this message]
2008-10-28  9:31     ` Ingo Molnar

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=21d34cad0810280224t7382c419k95ff89750caef6b2@mail.gmail.com \
    --to=qhfeng.kernel@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=s3c24xx@gmail.com \
    --subject='Re: [PATCH] LOCKDEP: minor fix for debug_show_all_locks()' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).