From: Horst Hummel Date: Wed, 27 Jul 2005 18:45:03 +0000 (-0700) Subject: [PATCH] s390: free dasd slab cache X-Git-Tag: v2.6.13-rc4~25^2~79 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6bb0e01081c2ca585b5e145783fea53bb0589786;p=linux-2.6-omap-h63xx.git [PATCH] s390: free dasd slab cache Free dasd slab cache on module unload. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 6527ff6f470..d5f53980749 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c @@ -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");