public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ipmi: setting mod_timer for read_event_msg buffer cmd
@ 2013-11-25  9:51 Srinivas_G_Gowda
  2013-11-26 17:26 ` Corey Minyard
  0 siblings, 1 reply; 9+ messages in thread
From: Srinivas_G_Gowda @ 2013-11-25  9:51 UTC (permalink / raw)
  To: tcminyard, linux-kernel, openipmi


Setting up mod_timer() for IPMI_READ_EVENT_MSG_BUFFER_CMD. 
 Driver stalls in case we hit error cases for IPMI_READ_EVENT_MSG_BUFFER_CMD.

Signed-off-by: Srinivas Gowda <srinivas_g_gowda@dell.com>
---
 drivers/char/ipmi/ipmi_si_intf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index 15e4a60..affcc52 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -843,6 +843,9 @@ static enum si_sm_result smi_event_handler(struct smi_info *smi_info,
 		smi_info->curr_msg->data[1] = IPMI_READ_EVENT_MSG_BUFFER_CMD;
 		smi_info->curr_msg->data_size = 2;
 
+		smi_info->last_timeout_jiffies = jiffies;
+		mod_timer(&smi_info->si_timer, (jiffies + SI_TIMEOUT_JIFFIES));
+
 		smi_info->handlers->start_transaction(
 			smi_info->si_sm,
 			smi_info->curr_msg->data,
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-12-05 12:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25  9:51 [PATCH 1/1] ipmi: setting mod_timer for read_event_msg buffer cmd Srinivas_G_Gowda
2013-11-26 17:26 ` Corey Minyard
     [not found]   ` <75F7F7632819D94BA80703D8B1F10B6D29CEE95A1D@BLRX7MCDC201.AMER.DELL.COM>
2013-11-30  0:19     ` Corey Minyard
2013-12-02 14:49       ` Srinivas_G_Gowda
2013-12-02 21:03         ` Corey Minyard
2013-12-03  6:18           ` Srinivas_G_Gowda
2013-12-03 17:10             ` Corey Minyard
2013-12-04 11:58               ` Srinivas_G_Gowda
2013-12-05 12:40                 ` Srinivas_G_Gowda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox