diff options
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r-- | drivers/md/raid0.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index d535f9be39f4..9f9c6b76ca7c 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c | |||
@@ -465,9 +465,8 @@ static inline int is_io_in_chunk_boundary(mddev_t *mddev, | |||
465 | } | 465 | } |
466 | } | 466 | } |
467 | 467 | ||
468 | static int raid0_make_request(struct request_queue *q, struct bio *bio) | 468 | static int raid0_make_request(mddev_t *mddev, struct bio *bio) |
469 | { | 469 | { |
470 | mddev_t *mddev = q->queuedata; | ||
471 | unsigned int chunk_sects; | 470 | unsigned int chunk_sects; |
472 | sector_t sector_offset; | 471 | sector_t sector_offset; |
473 | struct strip_zone *zone; | 472 | struct strip_zone *zone; |
@@ -495,9 +494,9 @@ static int raid0_make_request(struct request_queue *q, struct bio *bio) | |||
495 | else | 494 | else |
496 | bp = bio_split(bio, chunk_sects - | 495 | bp = bio_split(bio, chunk_sects - |
497 | sector_div(sector, chunk_sects)); | 496 | sector_div(sector, chunk_sects)); |
498 | if (raid0_make_request(q, &bp->bio1)) | 497 | if (raid0_make_request(mddev, &bp->bio1)) |
499 | generic_make_request(&bp->bio1); | 498 | generic_make_request(&bp->bio1); |
500 | if (raid0_make_request(q, &bp->bio2)) | 499 | if (raid0_make_request(mddev, &bp->bio2)) |
501 | generic_make_request(&bp->bio2); | 500 | generic_make_request(&bp->bio2); |
502 | 501 | ||
503 | bio_pair_release(bp); | 502 | bio_pair_release(bp); |