From: Tejun Heo Date: Thu, 7 Dec 2006 04:36:01 +0000 (-0800) Subject: [PATCH] file: kill unnecessary timer in fdtable_defer X-Git-Tag: v2.6.20-rc1~145^2^2~219 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=593be07ae8f6f4a1b1b98813fabb155328f8bc0c;p=pandora-kernel.git [PATCH] file: kill unnecessary timer in fdtable_defer 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: Tejun Heo Cc: Dipankar Sarma Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed