From bc8ffb2d0855b76dd0f8f0993cadf8ef0dfe0f0a Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Tue, 29 Sep 2015 18:28:47 -0400 Subject: [PATCH] Remove obsolete zv_lock All users of zv_lock were removed by 37f9dac, but we forgot to remove it. Lets remove it as clean up. Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Issue #3858 --- module/zfs/zvol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index c81f02a39..cdaa838d2 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -74,7 +74,6 @@ typedef struct zvol_state { dev_t zv_dev; /* device id */ struct gendisk *zv_disk; /* generic disk */ struct request_queue *zv_queue; /* request queue */ - spinlock_t zv_lock; /* request queue lock */ list_node_t zv_next; /* next zvol_state_t linkage */ } zvol_state_t; @@ -1205,7 +1204,6 @@ zvol_alloc(dev_t dev, const char *name) zv = kmem_zalloc(sizeof (zvol_state_t), KM_SLEEP); - spin_lock_init(&zv->zv_lock); list_link_init(&zv->zv_next); zv->zv_queue = blk_alloc_queue(GFP_ATOMIC);