patch-2.4.19 linux-2.4.19/drivers/s390/ccwcache.c

Next file: linux-2.4.19/drivers/s390/char/con3215.c
Previous file: linux-2.4.19/drivers/s390/block/dasd_int.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/s390/ccwcache.c linux-2.4.19/drivers/s390/ccwcache.c
@@ -291,9 +291,11 @@
 	/* Shrink the caches, if available */
 	for ( cachind = 0; cachind < CCW_NUMBER_CACHES; cachind ++ ) {
 		if ( ccw_cache[cachind] ) {
+#if 0 /* this is useless and could cause an OOPS in the worst case */
 			if ( kmem_cache_shrink(ccw_cache[cachind]) == 0 ) {
 				ccw_cache[cachind] = NULL;
 			}
+#endif
 			kmem_cache_destroy(ccw_cache[cachind]);
 		}
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)