]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
dm vdo: add missing spin_lock_init
authorKen Raeburn <raeburn@redhat.com>
Wed, 19 Feb 2025 22:56:00 +0000 (17:56 -0500)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 24 Feb 2025 11:07:02 +0000 (12:07 +0100)
Signed-off-by: Ken Raeburn <raeburn@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-vdo/dedupe.c

index b6f8e2dc7729fbf9b71f01998e3cda6c7d31b98e..3f3d29af1be474f67d62ed5346fc958bb9d0d87e 100644 (file)
@@ -2178,6 +2178,7 @@ static int initialize_index(struct vdo *vdo, struct hash_zones *zones)
 
        vdo_set_dedupe_index_timeout_interval(vdo_dedupe_index_timeout_interval);
        vdo_set_dedupe_index_min_timer_interval(vdo_dedupe_index_min_timer_interval);
+       spin_lock_init(&zones->lock);
 
        /*
         * Since we will save up the timeouts that would have been reported but were ratelimited,