From: Nishanth Aravamudan <nacc@us.ibm.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] schedule_timeout(1) -- best approach?
Date: Fri, 10 Jun 2005 21:04:49 +0000 [thread overview]
Message-ID: <20050610210449.GE2630@us.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
Fellow KJ-ers,
Now that CONFIG_HZ has gone into -mm, people are going to start seeing
"bugs" which may be just timing issues (in the sense of inaccurate
requests).
We should have a TODO entry to look into the callers of
schedule_timeout() who use arbitrary numbers instead of HZ-relative
values. The most common case is schedule_timeout(1).
-Nish
--- TODO 2005-06-10 14:00:28.000000000 -0700
+++ TODO-dev 2005-06-10 14:03:29.000000000 -0700
@@ -96,6 +96,13 @@ Remove unneeded historic code / New API
them all, because we want to remove sleep_on() and friends in 2.5.
[D: http://boudicca.tux.org/hypermail/linux-kernel/2001week05/0305.html]
Be sure to read replies too.
+- Callers of schedule_timeout() who pass in an absolute constant (i.e.
+ with no reference to HZ) may be broken, especially with a variable HZ
+ value. Verify which behavior is intended: if the caller needs the
+ shortest delay possible, then schedule_timeout(1) is correct and a
+ comment can be added; if they actually need a certain amount of time,
+ then use msleep() or schedule_timeout with an appropriate
+ {msecs,usecs,nsecs}_to_jiffies() call.
- Replace (un)register_ioctl32_conversion with ioctl_compat:
[D: http://lkml.org/lkml/2005/1/5/106]
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
reply other threads:[~2005-06-10 21:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050610210449.GE2630@us.ibm.com \
--to=nacc@us.ibm.com \
--cc=kernel-janitors@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.