Skip to content
  • Tejun Heo's avatar
    [PATCH] file: kill unnecessary timer in fdtable_defer · 593be07a
    Tejun Heo authored
    
    
    free_fdtable_rc() schedules timer to reschedule fddef->wq if
    schedule_work() on it returns 0.  However, schedule_work() guarantees that
    the target work is executed at least once after the scheduling regardless
    of its return value.  0 return simply means that the work was already
    pending and thus no further action was required.
    
    Another problem is that it used contant '5' as @expires argument to
    mod_timer().
    
    Kill unnecessary fddef->timer.
    
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Cc: Dipankar Sarma <dipankar@in.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    593be07a