Skip to contentSkip to conversation

net/farsync: add

PATCH New Nishanth Aravamudan 1 participant 1 message Sep 22, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 13/38 net/farsync: add

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.

drivers/net/wan/farsync.c +1 -0
@@ -975,6 +975,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);
 

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors