patch-2.4.0-test3 linux/drivers/block/z2ram.c

Next file: linux/drivers/cdrom/aztcd.c
Previous file: linux/drivers/block/xd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/block/z2ram.c linux/drivers/block/z2ram.c
@@ -399,6 +399,8 @@
     if ( unregister_blkdev( MAJOR_NR, DEVICE_NAME ) != 0 )
 	printk( KERN_ERR DEVICE_NAME ": unregister of device failed\n");
 
+    blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));
+
     if ( current_device != -1 )
     {
 	i = 0;

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