md: pass mddev to make_request functions rather than request_queue
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / md / raid1.c
index eebce166dafefeebfe2b5f23af641ca9d896847c..5ff75c4d3af6f5078aa7e700b3d9dcb160f19123 100644 (file)
@@ -773,9 +773,8 @@ do_sync_io:
        return NULL;
 }
 
-static int make_request(struct request_queue *q, struct bio * bio)
+static int make_request(mddev_t *mddev, struct bio * bio)
 {
-       mddev_t *mddev = q->queuedata;
        conf_t *conf = mddev->private;
        mirror_info_t *mirror;
        r1bio_t *r1_bio;