The patch titled file: kill unnecessary timer in fdtable_defer has been added to the -mm tree. Its filename is file-kill-unnecessary-timer-in-fdtable_defer.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: file: kill unnecessary timer in fdtable_defer From: Tejun Heo <htejun@xxxxxxxxx> 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@xxxxxxxxx> Cc: Dipankar Sarma <dipankar@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/file.c | 29 ++--------------------------- 1 files changed, 2 insertions(+), 27 deletions(-) diff -puN fs/file.c~file-kill-unnecessary-timer-in-fdtable_defer fs/file.c --- a/fs/file.c~file-kill-unnecessary-timer-in-fdtable_defer +++ a/fs/file.c @@ -21,7 +21,6 @@ struct fdtable_defer { spinlock_t lock; struct work_struct wq; - struct timer_list timer; struct fdtable *next; }; @@ -75,22 +74,6 @@ static void __free_fdtable(struct fdtabl kfree(fdt); } -static void fdtable_timer(unsigned long data) -{ - struct fdtable_defer *fddef = (struct fdtable_defer *)data; - - spin_lock(&fddef->lock); - /* - * If someone already emptied the queue return. - */ - if (!fddef->next) - goto out; - if (!schedule_work(&fddef->wq)) - mod_timer(&fddef->timer, 5); -out: - spin_unlock(&fddef->lock); -} - static void free_fdtable_work(struct fdtable_defer *f) { struct fdtable *fdt; @@ -142,13 +125,8 @@ static void free_fdtable_rcu(struct rcu_ spin_lock(&fddef->lock); fdt->next = fddef->next; fddef->next = fdt; - /* - * vmallocs are handled from the workqueue context. - * If the per-cpu workqueue is running, then we - * defer work scheduling through a timer. - */ - if (!schedule_work(&fddef->wq)) - mod_timer(&fddef->timer, 5); + /* vmallocs are handled from the workqueue context */ + schedule_work(&fddef->wq); spin_unlock(&fddef->lock); put_cpu_var(fdtable_defer_list); } @@ -352,9 +330,6 @@ static void __devinit fdtable_defer_list struct fdtable_defer *fddef = &per_cpu(fdtable_defer_list, cpu); spin_lock_init(&fddef->lock); INIT_WORK(&fddef->wq, (void (*)(void *))free_fdtable_work, fddef); - init_timer(&fddef->timer); - fddef->timer.data = (unsigned long)fddef; - fddef->timer.function = fdtable_timer; fddef->next = NULL; } _ Patches currently in -mm which might be from htejun@xxxxxxxxx are git-libata-all.patch ata_piix-clean-up-port-flags.patch libata-unexport-ata_dev_revalidate.patch libata-convert-post_reset-to-flags-in-ata_dev_read_id.patch libata-implement-presence-detection-via-polling-identify.patch ata_piix-apply-device-detection-via-polling-identify.patch ata_piix-strip-now-unneded-map-related-stuff.patch ahci-readability-tweak.patch libata-sff-allow-for-wacky-systems.patch libata-revamp-blacklist-support-to-allow-multiple-kinds.patch pata_marvell-marvell-6101-6145-pata-driver.patch via-pata-controller-xfer-fixes.patch file-kill-unnecessary-timer-in-fdtable_defer.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html