Merge tag 'locking-urgent-2020-08-10' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / md / raid5.c
index fb8d1fb..ef0fd48 100644 (file)
@@ -7019,7 +7019,7 @@ static struct r5conf *setup_conf(struct mddev *mddev)
        } else
                goto abort;
        spin_lock_init(&conf->device_lock);
-       seqcount_init(&conf->gen_lock);
+       seqcount_spinlock_init(&conf->gen_lock, &conf->device_lock);
        mutex_init(&conf->cache_size_mutex);
        init_waitqueue_head(&conf->wait_for_quiescent);
        init_waitqueue_head(&conf->wait_for_stripe);