The patch titled zram: free percpu data on module exit has been added to the -mm tree. Its filename is zram-free-percpu-data-on-module-exit.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: zram: free percpu data on module exit From: Anton Blanchard <anton@xxxxxxxxx> Signed-off-by: Anton Blanchard <anton@xxxxxxxxx> Cc: Nitin Gupta <ngupta@xxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/staging/zram/zram_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/staging/zram/zram_drv.c~zram-free-percpu-data-on-module-exit drivers/staging/zram/zram_drv.c --- a/drivers/staging/zram/zram_drv.c~zram-free-percpu-data-on-module-exit +++ a/drivers/staging/zram/zram_drv.c @@ -491,8 +491,7 @@ void zram_reset_device(struct zram *zram xv_destroy_pool(zram->mem_pool); zram->mem_pool = NULL; - /* Reset stats */ - memset(&zram->stats, 0, sizeof(zram->stats)); + free_percpu(zram->stats); zram->disksize = 0; mutex_unlock(&zram->init_lock); _ Patches currently in -mm which might be from anton@xxxxxxxxx are linux-next.patch zram-free-percpu-data-on-module-exit.patch zram-work-around-oops-due-to-startup-ordering-snafu.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