• Andrew Morton's avatar
    [PATCH] aio: fix io_getevents() timer expiry setting · 73721865
    Andrew Morton authored
    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: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    73721865
aio.c 31.3 KB