Remove unused thread. No one needs it. And if someone will need it in the future, he can add it in a few minutes. Signed-off-by: Mikulas Patocka --- drivers/md/dm-snap.c | 14 -------------- 1 file changed, 14 deletions(-) Index: linux-2.6.31-fast-new-2/drivers/md/dm-snap.c =================================================================== --- linux-2.6.31-fast-new-2.orig/drivers/md/dm-snap.c 2009-10-16 21:52:04.000000000 +0200 +++ linux-2.6.31-fast-new-2/drivers/md/dm-snap.c 2009-10-16 21:52:05.000000000 +0200 @@ -146,7 +146,6 @@ struct dm_dev *dm_snap_cow(struct dm_sna } EXPORT_SYMBOL(dm_snap_cow); -static struct workqueue_struct *ksnapd; static void flush_queued_bios(struct work_struct *work); static sector_t chunk_to_sector(struct dm_exception_store *store, @@ -1105,8 +1104,6 @@ static void snapshot_dtr(struct dm_targe #endif struct dm_snapshot *s = ti->private; - flush_workqueue(ksnapd); - /* This snapshot may need to handover its exception store */ down_write(&s->lock); if (s->handover_snap) { @@ -1983,17 +1980,8 @@ static int __init dm_snapshot_init(void) goto bad_tracked_chunk_cache; } - ksnapd = create_singlethread_workqueue("ksnapd"); - if (!ksnapd) { - DMERR("Failed to create ksnapd workqueue."); - r = -ENOMEM; - goto bad_pending_pool; - } - return 0; -bad_pending_pool: - kmem_cache_destroy(tracked_chunk_cache); bad_tracked_chunk_cache: kmem_cache_destroy(pending_cache); bad_pending_cache: @@ -2014,8 +2002,6 @@ bad_register_snapshot_target: static void __exit dm_snapshot_exit(void) { - destroy_workqueue(ksnapd); - dm_unregister_target(&snapshot_target); dm_unregister_target(&origin_target); dm_unregister_target(&merge_target);