Skip to contentSkip to conversation

s390/device_ops: insert

PATCH New Nishanth Aravamudan 1 participant 1 message Jul 27, 2004

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

PATCH 1/1 s390/device_ops: insert

I would appreciate any comments from the janitors list.

Applys-to: 2.6.7

Description: Add appropriate set_current_state() calls so schedule_timeout() functions as expected.

drivers/s390/cio/device_ops.c +2 -0
@@ -268,6 +268,7 @@ __ccw_device_retry_loop(struct ccw_devic
 		if ((ret == -EBUSY) || (ret == -EACCES)) {
 			/* Try again later. */
 			spin_unlock_irq(&sch->lock);
+			set_current_state(TASK_UNINTERRUPTIBLE);
 			schedule_timeout(1);
 			spin_lock_irq(&sch->lock);
 			continue;
@@ -294,6 +295,7 @@ __ccw_device_retry_loop(struct ccw_devic
 			break;
 		/* Try again later. */
 		spin_unlock_irq(&sch->lock);
+		set_current_state(TASK_UINTERRUPTIBLE);
 		schedule_timeout(1);
 		spin_lock_irq(&sch->lock);
 	} while (1);

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