Skip to content

Commit

Permalink
core/ipmi: Add ipmi sync messages to top of the list
Browse files Browse the repository at this point in the history
[ Upstream commit 968c309 ]

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>
  • Loading branch information
Vasant Hegde committed Mar 4, 2019
1 parent 788c9ac commit 28f5fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ipmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28f5fe3

Please sign in to comment.