Commit 4c418ba9 authored by Doe, YiCheng's avatar Doe, YiCheng Committed by Linus Torvalds

ipmi: Fix IPMI errors due to timing problems

This patch fixes an issue in OpenIPMI module where sometimes an ABORT command
is sent after sending an IPMI request to BMC causing the IPMI request to fail.
Signed-off-by: default avatarYiCheng Doe <yicheng.doe@hp.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
Acked-by: default avatarTom Mingarelli <thomas.mingarelli@hp.com>
Tested-by: default avatarAndy Cress <andy.cress@us.kontron.com>
Tested-by: default avatarMika Lansirine <Mika.Lansirinne@stonesoft.com>
Tested-by: default avatarBrian De Wolf <bldewolf@csupomona.edu>
Cc: Jean Michel Audet <Jean-Michel.Audet@ca.Kontron.com>
Cc: Jozef Sudelsky <jozef.sudolsky@elbiahosting.sk>
Acked-by: default avatarMatthew Garrett <mjg@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4afcc10a
...@@ -900,6 +900,14 @@ static void sender(void *send_info, ...@@ -900,6 +900,14 @@ static void sender(void *send_info,
printk("**Enqueue: %d.%9.9d\n", t.tv_sec, t.tv_usec); printk("**Enqueue: %d.%9.9d\n", t.tv_sec, t.tv_usec);
#endif #endif
/*
* last_timeout_jiffies is updated here to avoid
* smi_timeout() handler passing very large time_diff
* value to smi_event_handler() that causes
* the send command to abort.
*/
smi_info->last_timeout_jiffies = jiffies;
mod_timer(&smi_info->si_timer, jiffies + SI_TIMEOUT_JIFFIES); mod_timer(&smi_info->si_timer, jiffies + SI_TIMEOUT_JIFFIES);
if (smi_info->thread) if (smi_info->thread)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment