]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 17:25:44 +0000 (18:25 +0100)
commit 36e1b81f599a093ec7477e4593e110104adcfb96 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-vdo/dedupe.c

index 80628ae93fbacc938dc98539b2239aed07b799c4..5a74b3a85ec4357f84073ab8c061b35e776c2d83 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,