]> git.hungrycats.org Git - linux/commit
[PATCH] aio: fix io_getevents() timer expiry setting
authorAndrew Morton <akpm@osdl.org>
Thu, 3 Jun 2004 01:01:14 +0000 (18:01 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 01:01:14 +0000 (18:01 -0700)
commit737218657bf72e099eeea1234211a402aea37692
tree563da967f6b1e0f0de9fa0b61687ebc15bb4906c
parent93c934c00c41f4cb8d0681d52f393ada7271ca7c
[PATCH] aio: fix io_getevents() timer expiry setting

From: William Lee Irwin III <wli@holomorphy.com>

start_jiffies was not respected by set_timeout(), which reread jiffies
instead of respecting what read_events() passed it.  This difference can be
significant, particularly if the calling process slept during the
copy_to_user() operation in read_events().  To correct this, this patch
teaches it to respect its argument, with the additional bonus of converting
it to use timespec_to_jiffies() instead of open-coding it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/aio.c