Prev: [PATCH] - race-free suspend. Was: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8)
Next: Cleancache (was Transcendent Memory): overview
From: Eric Dumazet on 2 Jun 2010 01:40 No need to clear mod->refptr in module_unload_init(), since alloc_percpu() already clears allocated chunks. Signed-off-by: Eric Dumazet <eric.dumazet(a)gmail.com> --- kernel/module.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 0129769..15acb25 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -524,10 +524,6 @@ static void module_unload_init(struct module *mod) int cpu; INIT_LIST_HEAD(&mod->modules_which_use_me); - for_each_possible_cpu(cpu) { - per_cpu_ptr(mod->refptr, cpu)->incs = 0; - per_cpu_ptr(mod->refptr, cpu)->decs = 0; - } /* Hold reference count during initialization. */ __this_cpu_write(mod->refptr->incs, 1); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |