diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2019-02-28 08:30:09 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-03-01 16:00:59 +1100 |
commit | 968c30905d7a61d777606a5f5c7949027564efd8 (patch) | |
tree | a455c53bf5cd2165290519ce2aceb44984f6b380 /core | |
parent | 61978c2c54d082b6f29f492e898e59d6198cfb5f (diff) | |
download | talos-skiboot-968c30905d7a61d777606a5f5c7949027564efd8.tar.gz talos-skiboot-968c30905d7a61d777606a5f5c7949027564efd8.zip |
core/ipmi: Add ipmi sync messages to top of the list
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>
Diffstat (limited to 'core')
-rw-r--r-- | core/ipmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ipmi.c b/core/ipmi.c index 6770b43a..27cb4268 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) |