diff options
author | Horst Hummel <horst.hummel@de.ibm.com> | 2005-07-27 14:45:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:05 -0400 |
commit | 6bb0e01081c2ca585b5e145783fea53bb0589786 (patch) | |
tree | d4bb81e6dfa15df6e9b9dd718a0e44fab804da78 /drivers/s390 | |
parent | d61f6f3d8b63a2aadcf8b058fe65581ccd8dee97 (diff) |
[PATCH] s390: free dasd slab cache
Free dasd slab cache on module unload.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dasd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 6527ff6f4706..d5f53980749b 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * Bugreports.to..: <Linux390@de.ibm.com> | 7 | * Bugreports.to..: <Linux390@de.ibm.com> |
8 | * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2001 | 8 | * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2001 |
9 | * | 9 | * |
10 | * $Revision: 1.164 $ | 10 | * $Revision: 1.165 $ |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/config.h> | 13 | #include <linux/config.h> |
@@ -1740,6 +1740,10 @@ dasd_exit(void) | |||
1740 | dasd_proc_exit(); | 1740 | dasd_proc_exit(); |
1741 | #endif | 1741 | #endif |
1742 | dasd_ioctl_exit(); | 1742 | dasd_ioctl_exit(); |
1743 | if (dasd_page_cache != NULL) { | ||
1744 | kmem_cache_destroy(dasd_page_cache); | ||
1745 | dasd_page_cache = NULL; | ||
1746 | } | ||
1743 | dasd_gendisk_exit(); | 1747 | dasd_gendisk_exit(); |
1744 | dasd_devmap_exit(); | 1748 | dasd_devmap_exit(); |
1745 | devfs_remove("dasd"); | 1749 | devfs_remove("dasd"); |