Commit 6bb0e010 authored by Horst Hummel's avatar Horst Hummel Committed by Linus Torvalds

[PATCH] s390: free dasd slab cache

Free dasd slab cache on module unload.
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d61f6f3d
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Bugreports.to..: <Linux390@de.ibm.com> * Bugreports.to..: <Linux390@de.ibm.com>
* (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2001 * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2001
* *
* $Revision: 1.164 $ * $Revision: 1.165 $
*/ */
#include <linux/config.h> #include <linux/config.h>
...@@ -1740,6 +1740,10 @@ dasd_exit(void) ...@@ -1740,6 +1740,10 @@ dasd_exit(void)
dasd_proc_exit(); dasd_proc_exit();
#endif #endif
dasd_ioctl_exit(); dasd_ioctl_exit();
if (dasd_page_cache != NULL) {
kmem_cache_destroy(dasd_page_cache);
dasd_page_cache = NULL;
}
dasd_gendisk_exit(); dasd_gendisk_exit();
dasd_devmap_exit(); dasd_devmap_exit();
devfs_remove("dasd"); devfs_remove("dasd");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment