dm-snap.c (90fa1527bddc7147dc0d590ee6184ca88bc50ecf) | dm-snap.c (10d3bd09a3c25df114f74f7f86e1b58d070bef32) |
---|---|
1/* 2 * dm-snapshot.c 3 * 4 * Copyright (C) 2001-2002 Sistina Software (UK) Limited. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 1456 unchanged lines hidden (view full) --- 1465 dm_unregister_target(&origin_target); 1466 bad1: 1467 dm_unregister_target(&snapshot_target); 1468 return r; 1469} 1470 1471static void __exit dm_snapshot_exit(void) 1472{ | 1/* 2 * dm-snapshot.c 3 * 4 * Copyright (C) 2001-2002 Sistina Software (UK) Limited. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 1456 unchanged lines hidden (view full) --- 1465 dm_unregister_target(&origin_target); 1466 bad1: 1467 dm_unregister_target(&snapshot_target); 1468 return r; 1469} 1470 1471static void __exit dm_snapshot_exit(void) 1472{ |
1473 int r; 1474 | |
1475 destroy_workqueue(ksnapd); 1476 | 1473 destroy_workqueue(ksnapd); 1474 |
1477 r = dm_unregister_target(&snapshot_target); 1478 if (r) 1479 DMERR("snapshot unregister failed %d", r); | 1475 dm_unregister_target(&snapshot_target); 1476 dm_unregister_target(&origin_target); |
1480 | 1477 |
1481 r = dm_unregister_target(&origin_target); 1482 if (r) 1483 DMERR("origin unregister failed %d", r); 1484 | |
1485 exit_origin_hash(); 1486 kmem_cache_destroy(pending_cache); 1487 kmem_cache_destroy(exception_cache); 1488 kmem_cache_destroy(tracked_chunk_cache); 1489} 1490 1491/* Module hooks */ 1492module_init(dm_snapshot_init); 1493module_exit(dm_snapshot_exit); 1494 1495MODULE_DESCRIPTION(DM_NAME " snapshot target"); 1496MODULE_AUTHOR("Joe Thornber"); 1497MODULE_LICENSE("GPL"); | 1478 exit_origin_hash(); 1479 kmem_cache_destroy(pending_cache); 1480 kmem_cache_destroy(exception_cache); 1481 kmem_cache_destroy(tracked_chunk_cache); 1482} 1483 1484/* Module hooks */ 1485module_init(dm_snapshot_init); 1486module_exit(dm_snapshot_exit); 1487 1488MODULE_DESCRIPTION(DM_NAME " snapshot target"); 1489MODULE_AUTHOR("Joe Thornber"); 1490MODULE_LICENSE("GPL"); |