From: "Hironobu Ishii" <hishii@soft.fujitsu.com>
To: "Corey Minyard" <minyard@acm.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.6.14-git13] ipmi: inconsistent spin_lock in ipmi_smi_msg_received
Date: Fri, 11 Nov 2005 20:52:45 +0900 [thread overview]
Message-ID: <031001c5e6b6$9de0d100$c8a0220a@CARREN> (raw)
[-- Attachment #1: Type: text/plain, Size: 307 bytes --]
Hi Corey,
You revert a patch by mistake in the following patch
> Date Fri, 21 Oct 2005 09:49:09 -0500
> From Corey Minyard <>
> Subject [PATCH 1/9] ipmi: use refcount in message handler
(http://lkml.org/lkml/2005/10/21/85)
Signed-off-by: Hironobu Ishii <hishii@soft.fujitsu.com>
[-- Attachment #2: ipmi_trivial.txt --]
[-- Type: text/plain, Size: 1225 bytes --]
diff -urNp linux-2.6.14-git13/drivers/char/ipmi/ipmi_msghandler.c linux-2.6.14-git13.modified/drivers/char/ipmi/ipmi_msghandler.c
--- linux-2.6.14-git13/drivers/char/ipmi/ipmi_msghandler.c 2005-11-11 10:50:37.000000000 +0900
+++ linux-2.6.14-git13.modified/drivers/char/ipmi/ipmi_msghandler.c 2005-11-11 19:53:21.000000000 +0900
@@ -2648,7 +2648,7 @@ void ipmi_smi_msg_received(ipmi_smi_t
spin_lock_irqsave(&intf->waiting_msgs_lock, flags);
if (!list_empty(&intf->waiting_msgs)) {
list_add_tail(&msg->link, &intf->waiting_msgs);
- spin_unlock(&intf->waiting_msgs_lock);
+ spin_unlock_irqrestore(&intf->waiting_msgs_lock, flags);
goto out;
}
spin_unlock_irqrestore(&intf->waiting_msgs_lock, flags);
@@ -2657,9 +2657,9 @@ void ipmi_smi_msg_received(ipmi_smi_t
if (rv > 0) {
/* Could not handle the message now, just add it to a
list to handle later. */
- spin_lock(&intf->waiting_msgs_lock);
+ spin_lock_irqsave(&intf->waiting_msgs_lock, flags);
list_add_tail(&msg->link, &intf->waiting_msgs);
- spin_unlock(&intf->waiting_msgs_lock);
+ spin_unlock_irqrestore(&intf->waiting_msgs_lock, flags);
} else if (rv == 0) {
ipmi_free_smi_msg(msg);
}
reply other threads:[~2005-11-11 11:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='031001c5e6b6$9de0d100$c8a0220a@CARREN' \
--to=hishii@soft.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=minyard@acm.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
Powered by JetHome