aboutsummaryrefslogtreecommitdiff
path: root/core
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-04 21:36:51 +0530
commit28f5fe3a6edc6664b37e81e8fa56d0b095a9f4d5 (patch)
tree23a98458eeae81675611e1f30a6ab9f573bf25ba /core
parent788c9ac2b926549fa1a2807956e7a2a1ec69c335 (diff)
downloadskiboot-28f5fe3a6edc6664b37e81e8fa56d0b095a9f4d5.zip
skiboot-28f5fe3a6edc6664b37e81e8fa56d0b095a9f4d5.tar.gz
skiboot-28f5fe3a6edc6664b37e81e8fa56d0b095a9f4d5.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>
Diffstat (limited to 'core')
-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)