Remove the dead pe_lock spinlock. Signed-off-by: Jan Blunck <jblunck@xxxxxxx> --- drivers/md/dm-snap.c | 1 - drivers/md/dm-snap.h | 6 ------ 2 files changed, 7 deletions(-) --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c @@ -469,7 +469,6 @@ static int snapshot_ctr(struct dm_target s->active = 0; s->last_percent = 0; init_rwsem(&s->lock); - spin_lock_init(&s->pe_lock); s->table = ti->table; /* Allocate hash table for COW data */ --- a/drivers/md/dm-snap.h +++ b/drivers/md/dm-snap.h @@ -114,12 +114,6 @@ struct dm_snapshot { struct exception_table pending; struct exception_table complete; - /* - * pe_lock protects all pending_exception operations and access - * as well as the snapshot_bios list. - */ - spinlock_t pe_lock; - /* The on disk metadata handler */ struct exception_store store; -- -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel