From: domen@coderock.org
To: gadio@netvision.net.il
Cc: B.Zolnierkiewicz@elka.pw.edu.pl, linux-ide@vger.kernel.org,
Nishanth Aravamudan <nacc@us.ibm.com>,
Maximilian Attems <janitor@sternwelten.at>,
domen@coderock.org
Subject: [patch 1/1] ide-tape: replace schedule_timeout() with msleep()
Date: Mon, 20 Jun 2005 23:52:10 +0200 [thread overview]
Message-ID: <20050620215209.992854000@nd47.coderock.org> (raw)
[-- Attachment #1: msleep-drivers_ide_ide-tape.patch --]
[-- Type: text/plain, Size: 867 bytes --]
From: Nishanth Aravamudan <nacc@us.ibm.com>
Uses msleep() instead of schedule_timeout() to guarantee
the task delays at least the desired time amount.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
ide-tape.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: quilt/drivers/ide/ide-tape.c
===================================================================
--- quilt.orig/drivers/ide/ide-tape.c
+++ 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;
}
--
next reply other threads:[~2005-06-20 21:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-20 21:52 domen [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-06 10:42 [patch 1/1] ide-tape: replace schedule_timeout() with msleep() domen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050620215209.992854000@nd47.coderock.org \
--to=domen@coderock.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=gadio@netvision.net.il \
--cc=janitor@sternwelten.at \
--cc=linux-ide@vger.kernel.org \
--cc=nacc@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).