Skip to contentSkip to conversation

char/fdc-io: replace

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

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

PATCH 7/33 char/fdc-io: replace

Any comments would be appreciated.

Description: Use set_current_state() instead of direct assignment of current->state.

drivers/char/ftape/lowlevel/fdc-io.c +1 -1
@@ -389,7 +389,7 @@ int fdc_interrupt_wait(unsigned int time
 	recalc_sigpending();
 	spin_unlock_irq(&current->sighand->siglock);
 
-	current->state = TASK_INTERRUPTIBLE;
+	set_current_state(TASK_INTERRUPTIBLE);
 	add_wait_queue(&ftape_wait_intr, &wait);
 	while (!ft_interrupt_seen && (current->state == TASK_INTERRUPTIBLE)) {
 		timeout = schedule_timeout(timeout);

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