The patch titled make sys_poll() wait at least timeout ms has been added to the -mm tree. Its filename is make-sys_poll-wait-at-least-timeout-ms.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: make sys_poll() wait at least timeout ms From: Karsten Wiese <fzu@xxxxxxxxxxxxxxxxxxxxx> schedule_timeout(jiffies) waits for at least jiffies - 1. Add 1 jiffie to the timeout_jiffies calculated in sys_poll() to wait at least timeout_msecs, like poll() manpage says. Signed-off-by: Karsten Wiese <fzu@xxxxxxxxxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/select.c~make-sys_poll-wait-at-least-timeout-ms fs/select.c --- a/fs/select.c~make-sys_poll-wait-at-least-timeout-ms +++ a/fs/select.c @@ -739,7 +739,7 @@ asmlinkage long sys_poll(struct pollfd _ timeout_jiffies = -1; else #endif - timeout_jiffies = msecs_to_jiffies(timeout_msecs); + timeout_jiffies = msecs_to_jiffies(timeout_msecs) + 1; } else { /* Infinite (< 0) or no (0) timeout */ timeout_jiffies = timeout_msecs; _ Patches currently in -mm which might be from fzu@xxxxxxxxxxxxxxxxxxxxx are make-sys_poll-wait-at-least-timeout-ms.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html