net/farsync: add set_current_state() before schedule_timeout()
Subsystems (3)
PATCH 1/1 net/farsync: add set_current_state() before schedule_timeout()
Any comments would be appreciated.
Description: Insert set_current_state() before schedule_timeout() so the function delays as expected. Without the addition, schedule_timeout() will return immediately.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
Signed-off-by Domen Puncer <[email protected]>
---
kj-domen/drivers/net/wan/farsync.c | 1 + 1 files changed, 1 insertion(+)
drivers/net/wan/farsync.c renamed from drivers/net/wan/farsync.c~set_current_state-drivers_net_wan_farsync +1 -0
@@ -981,6 +981,7 @@ fst_issue_cmd(struct fst_port_info *port/* Wait for any previous command to complete */ while (mbval >NAK ) {spin_unlock_irqrestore (&card->card_lock, flags); +set_current_state (TASK_UNINTERRUPTIBLE );schedule_timeout (1 );spin_lock_irqsave (&card->card_lock, flags);
_