]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/md/raid5.c
Remove blkdev warning triggered by using md
[linux-2.6-omap-h63xx.git] / drivers / md / raid5.c
index ee0ea9183080fd3e333302eb4512803b6d9f26b1..93fde48c0f42e52cbedad8be994d00362e6198b6 100644 (file)
@@ -4257,6 +4257,7 @@ static int run(mddev_t *mddev)
                        goto abort;
        }
        spin_lock_init(&conf->device_lock);
+       mddev->queue->queue_lock = &conf->device_lock;
        init_waitqueue_head(&conf->wait_for_stripe);
        init_waitqueue_head(&conf->wait_for_overlap);
        INIT_LIST_HEAD(&conf->handle_list);