Skip to contentSkip to conversation

message/i2o_core: replace

PATCH New Nishanth Aravamudan 1 participant 1 message Jul 26, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 message/i2o_core: replace

I would appreciate any comments from the janitors list.

Thanks,
Nish

Applys-to: 2.6.7

Description: Uses msleep() instead of schedule_timeout() so the task is guaranteed to delay the desired time.

drivers/message/i2o/i2o_core.c +1 -2
@@ -889,8 +889,7 @@ int i2o_release_device(struct i2o_device
 		if((err=i2o_issue_claim(I2O_CMD_UTIL_RELEASE, d->controller, d->lct_data.tid, I2O_CLAIM_PRIMARY)) )
 		{
 			err = -ENXIO;
-			current->state = TASK_UNINTERRUPTIBLE;
-			schedule_timeout(HZ);
+			msleep(1000);
 		}
 		else
 		{

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