Skip to contentSkip to conversation

net/islpci_mgt: add

PATCH In review Nishanth Aravamudan 1 participant 1 message Sep 23, 2004

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

PATCH 18/38 net/islpci_mgt: add

Any comments would be appreciated.

Description: Insert set_current_state() before schedule_timeout() so the task delays as expected. In the current code, prepare_to_wait() takes care of this problem for the first iteration of the while-loop, but on subsequent iterations, schedule_timeout() will return immediately.

drivers/net/wireless/prism54/islpci_mgt.c +1 -0
@@ -473,6 +473,7 @@ islpci_mgt_transaction(struct net_device
 		int timeleft;
 		struct islpci_mgmtframe *frame;
 
+		set_current_state(TASK_UNINTERRUPTIBLE);
 		timeleft = schedule_timeout(wait_cycle_jiffies);
 		frame = xchg(&priv->mgmt_received, NULL);
 		if (frame) {

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