Skip to contentSkip to conversation

ide-tape: replace schedule_timeout() with msleep()

PATCH New [email protected] 1 participant 1 message Jun 20, 2005 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ide-tape: replace schedule_timeout() with msleep()

From: Nishanth Aravamudan <[email protected]>

Uses msleep() instead of schedule_timeout() to guarantee the task delays at least the desired time amount.

---
 ide-tape.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/ide/ide-tape.c +1 -2
Index: quilt/drivers/ide/ide-tape.c
===================================================================
@@ -2903,8 +2903,7 @@ static int idetape_wait_ready(ide_drive_
 		} else if (!(tape->sense_key == 2 && tape->asc == 4 &&
 			     (tape->ascq == 1 || tape->ascq == 8)))
 			return -EIO;
-		current->state = TASK_INTERRUPTIBLE;
-  		schedule_timeout(HZ / 10);
+		msleep(100);
 	}
 	return -EIO;
 }

--