Skip to contentSkip to conversation

s390: free dasd slab cache.

PATCH In review Martin Schwidefsky 1 participant 1 message Jul 11, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/12 s390: free dasd slab cache.

[patch 8/12] s390: free dasd slab cache.

From: Horst Hummel <[email protected]>

Free dasd slab cache on module unload.

diffstat:

 drivers/s390/block/dasd.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)
drivers/s390/block/dasd.c +5 -1
diff -urpN linux-2.6/drivers/s390/block/dasd.c linux-2.6-patched/drivers/s390/block/dasd.c
@@ -7,7 +7,7 @@
  * Bugreports.to..: <[email protected]>
  * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2001
  *
- * $Revision: 1.164 $
+ * $Revision: 1.165 $
  */
 
 #include <linux/config.h>
@@ -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");