drivers/acpi/acpi_ipmi.c: Set state to TASK_INTERRUPTIBLE in ipmi_flush_tx_msg
Subsystems (2)
PATCH 1/1 drivers/acpi/acpi_ipmi.c: Set state to TASK_INTERRUPTIBLE in ipmi_flush_tx_msg
From: Sifram Rajas <Sifram Rajas [email protected]>
The intent of the loop in ipmi_flush_tx_msg seems to be to wait for 1 milllisecond for a count of 100. However, if we do not set the current task's state to TASK_INTERRUPTIBLE, then this will amount to a normal schedule which might not wait for 1 millisecond.
Signed-off-by Sifram Rajas <Sifram Rajas [email protected]>
--- drivers/acpi/acpi_ipmi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/acpi/acpi_ipmi.c +1 -0
@@ -230,6 +230,7 @@ static void ipmi_flush_tx_msg(struct acpi_ipmi_device *ipmi)while (count--) {if (list_empty (&ipmi->tx_msg_list))break ; +__set_current_state (TASK_INTERRUPTIBLE );schedule_timeout (1 ); }if (!list_empty (&ipmi->tx_msg_list))
Signature · 1 line
1.7.4.1