diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index ca313d646fd1..a1d727610a49 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -788,9 +788,8 @@ static void unfreeze_array(conf_t *conf) | |||
788 | spin_unlock_irq(&conf->resync_lock); | 788 | spin_unlock_irq(&conf->resync_lock); |
789 | } | 789 | } |
790 | 790 | ||
791 | static int make_request(struct request_queue *q, struct bio * bio) | 791 | static int make_request(mddev_t *mddev, struct bio * bio) |
792 | { | 792 | { |
793 | mddev_t *mddev = q->queuedata; | ||
794 | conf_t *conf = mddev->private; | 793 | conf_t *conf = mddev->private; |
795 | mirror_info_t *mirror; | 794 | mirror_info_t *mirror; |
796 | r10bio_t *r10_bio; | 795 | r10bio_t *r10_bio; |
@@ -824,9 +823,9 @@ static int make_request(struct request_queue *q, struct bio * bio) | |||
824 | */ | 823 | */ |
825 | bp = bio_split(bio, | 824 | bp = bio_split(bio, |
826 | chunk_sects - (bio->bi_sector & (chunk_sects - 1)) ); | 825 | chunk_sects - (bio->bi_sector & (chunk_sects - 1)) ); |
827 | if (make_request(q, &bp->bio1)) | 826 | if (make_request(mddev, &bp->bio1)) |
828 | generic_make_request(&bp->bio1); | 827 | generic_make_request(&bp->bio1); |
829 | if (make_request(q, &bp->bio2)) | 828 | if (make_request(mddev, &bp->bio2)) |
830 | generic_make_request(&bp->bio2); | 829 | generic_make_request(&bp->bio2); |
831 | 830 | ||
832 | bio_pair_release(bp); | 831 | bio_pair_release(bp); |