public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Zhou Yingchao <yc_zhou@ncic.ac.cn>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Remove redundant up() in stop_machine(2.6.18-rc4)
Date: Wed, 23 Aug 2006 18:45:43 +0800	[thread overview]
Message-ID: <1156329943.2485.6.camel@zyc> (raw)

 An up() is called in kernel/stop_machine.c on failure, and also in
the caller unconditionally. I have reported, but now it is still here.

Signed-off-by: Zhou Yingchao <yingchao.zhou@gmail.com>
___
--- kernel/stop_machine.c.orig  2006-08-23 14:53:36.000000000 +0800
+++ kernel/stop_machine.c       2006-08-23 14:53:55.000000000 +0800
@@ -111,7 +111,6 @@ static int stop_machine(void)
       /* If some failed, kill them all. */
       if (ret < 0) {
               stopmachine_set_state(STOPMACHINE_EXIT);
-              up(&stopmachine_mutex);
               return ret;
       }


             reply	other threads:[~2006-08-23 10:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-23 10:45 Zhou Yingchao [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-23 10:27 [PATCH] Remove redundant up() in stop_machine(2.6.18-rc4) Zhou Yingchao
2006-08-23  8:31 Zhou Yingchao

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=1156329943.2485.6.camel@zyc \
    --to=yc_zhou@ncic.ac.cn \
    --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