aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-02-28 08:30:09 +0530
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-03-05 11:25:17 +0530
commit184f81559530da68d5eb5130255fc60afdcc506b (patch)
tree6992bece60323fc6461d723fd2879eff1f169d47
parent53d0266881ba3e82c6b212f105a9e7905e026fa1 (diff)
downloadskiboot-184f81559530da68d5eb5130255fc60afdcc506b.zip
skiboot-184f81559530da68d5eb5130255fc60afdcc506b.tar.gz
skiboot-184f81559530da68d5eb5130255fc60afdcc506b.tar.bz2
core/ipmi: Add ipmi sync messages to top of the list
[ Upstream commit 968c30905d7a61d777606a5f5c7949027564efd8 ] In ipmi_queue_msg_sync() path OPAL will wait until it gets response from BMC. If we do not get response ontime we may endup in kernel hardlockups. Hence lets add sync messages to top of the queue. This will reduces the chance of hardlockups. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
-rw-r--r--core/ipmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ipmi.c b/core/ipmi.c
index 6770b43..27cb426 100644
--- a/core/ipmi.c
+++ b/core/ipmi.c
@@ -178,7 +178,7 @@ void ipmi_queue_msg_sync(struct ipmi_msg *msg)
sync_msg = msg;
if (msg->backend->disable_retry)
msg->backend->disable_retry(msg);
- ipmi_queue_msg(msg);
+ ipmi_queue_msg_head(msg);
unlock(&sync_lock);
while (sync_msg == msg)