From 8143d3dcab195031800b3ea07aee6e228abff039 Mon Sep 17 00:00:00 2001 From: Maximilian Attems Date: Thu, 2 Sep 2004 20:38:39 -0700 Subject: [PATCH] [PATCH] message/i2o_core: replace schedule_timeout() with msleep() Signed-off-by: Nishanth Aravamudan Signed-off-by: Maximilian Attems Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/message/i2o/i2o_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/message/i2o/i2o_core.c b/drivers/message/i2o/i2o_core.c index 66fa24b3f7a28..55b10f7ee5c7f 100644 --- a/drivers/message/i2o/i2o_core.c +++ b/drivers/message/i2o/i2o_core.c @@ -892,8 +892,7 @@ int i2o_release_device(struct i2o_device *d, struct i2o_handler *h) 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 { -- 2.53.0