Skip to contentSkip to conversation

wan/farsync: insert set_current_state()

PATCH New Nishanth Aravamudan 1 participant 2 messages Jul 27, 2004

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

PATCH 1/1 wan/farsync: insert set_current_state()

I would appreciate any comments from the janitors list.

Applys-to: 2.6.7

Description: Insert set_current_state() so schedule_timeout() functions as expected.

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

#1 lore raw

PATCH 1/1 wan/farsync: insert set_current_state()

Sorry, wrong recipients . . .

I would appreciate any comments from the janitors list.

Applys-to: 2.6.7

Description: Insert set_current_state() so schedule_timeout() functions as expected.

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