From: Horst Hummel Free dasd slab cache on module unload. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton --- drivers/s390/block/dasd.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletion(-) diff -puN drivers/s390/block/dasd.c~s390-free-dasd-slab-cache drivers/s390/block/dasd.c --- 25/drivers/s390/block/dasd.c~s390-free-dasd-slab-cache Mon Jul 11 16:37:30 2005 +++ 25-akpm/drivers/s390/block/dasd.c Mon Jul 11 16:37:30 2005 @@ -7,7 +7,7 @@ * Bugreports.to..: * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2001 * - * $Revision: 1.164 $ + * $Revision: 1.165 $ */ #include @@ -1740,6 +1740,10 @@ dasd_exit(void) dasd_proc_exit(); #endif dasd_ioctl_exit(); + if (dasd_page_cache != NULL) { + kmem_cache_destroy(dasd_page_cache); + dasd_page_cache = NULL; + } dasd_gendisk_exit(); dasd_devmap_exit(); devfs_remove("dasd"); _