diff options
author | Tejun Heo <htejun@gmail.com> | 2006-12-06 20:36:01 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:32 -0800 |
commit | 593be07ae8f6f4a1b1b98813fabb155328f8bc0c (patch) | |
tree | 570686c676986d79ff0868f88c499a8b8fc1d3b4 /Documentation/block | |
parent | e59e2ae2c29700117a54e85c106017c24837119f (diff) | |
download | kernel_samsung_smdk4412-593be07ae8f6f4a1b1b98813fabb155328f8bc0c.zip kernel_samsung_smdk4412-593be07ae8f6f4a1b1b98813fabb155328f8bc0c.tar.gz kernel_samsung_smdk4412-593be07ae8f6f4a1b1b98813fabb155328f8bc0c.tar.bz2 |
[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 <htejun@gmail.com>
Cc: Dipankar Sarma <dipankar@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/block')
0 files changed, 0 insertions, 0 deletions