dm-delay.c (a9de18eb761f7c1c860964b2e5addc1a35c7e861) | dm-delay.c (10d3bd09a3c25df114f74f7f86e1b58d070bef32) |
---|---|
1/* 2 * Copyright (C) 2005-2007 Red Hat GmbH 3 * 4 * A target that delays reads and/or writes and can send 5 * them to different devices. 6 * 7 * This file is released under the GPL. 8 */ --- 350 unchanged lines hidden (view full) --- 359bad_memcache: 360 destroy_workqueue(kdelayd_wq); 361bad_queue: 362 return r; 363} 364 365static void __exit dm_delay_exit(void) 366{ | 1/* 2 * Copyright (C) 2005-2007 Red Hat GmbH 3 * 4 * A target that delays reads and/or writes and can send 5 * them to different devices. 6 * 7 * This file is released under the GPL. 8 */ --- 350 unchanged lines hidden (view full) --- 359bad_memcache: 360 destroy_workqueue(kdelayd_wq); 361bad_queue: 362 return r; 363} 364 365static void __exit dm_delay_exit(void) 366{ |
367 int r = dm_unregister_target(&delay_target); 368 369 if (r < 0) 370 DMERR("unregister failed %d", r); 371 | 367 dm_unregister_target(&delay_target); |
372 kmem_cache_destroy(delayed_cache); 373 destroy_workqueue(kdelayd_wq); 374} 375 376/* Module hooks */ 377module_init(dm_delay_init); 378module_exit(dm_delay_exit); 379 380MODULE_DESCRIPTION(DM_NAME " delay target"); 381MODULE_AUTHOR("Heinz Mauelshagen <mauelshagen@redhat.com>"); 382MODULE_LICENSE("GPL"); | 368 kmem_cache_destroy(delayed_cache); 369 destroy_workqueue(kdelayd_wq); 370} 371 372/* Module hooks */ 373module_init(dm_delay_init); 374module_exit(dm_delay_exit); 375 376MODULE_DESCRIPTION(DM_NAME " delay target"); 377MODULE_AUTHOR("Heinz Mauelshagen <mauelshagen@redhat.com>"); 378MODULE_LICENSE("GPL"); |