diff options
Diffstat (limited to 'drivers/md/linear.c')
-rw-r--r-- | drivers/md/linear.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c index 3048c1704f40..3204a2263f21 100644 --- a/drivers/md/linear.c +++ b/drivers/md/linear.c | |||
@@ -286,9 +286,8 @@ static int linear_stop (mddev_t *mddev) | |||
286 | return 0; | 286 | return 0; |
287 | } | 287 | } |
288 | 288 | ||
289 | static int linear_make_request (struct request_queue *q, struct bio *bio) | 289 | static int linear_make_request (mddev_t *mddev, struct bio *bio) |
290 | { | 290 | { |
291 | mddev_t *mddev = q->queuedata; | ||
292 | dev_info_t *tmp_dev; | 291 | dev_info_t *tmp_dev; |
293 | sector_t start_sector; | 292 | sector_t start_sector; |
294 | 293 | ||
@@ -328,9 +327,9 @@ static int linear_make_request (struct request_queue *q, struct bio *bio) | |||
328 | 327 | ||
329 | bp = bio_split(bio, end_sector - bio->bi_sector); | 328 | bp = bio_split(bio, end_sector - bio->bi_sector); |
330 | 329 | ||
331 | if (linear_make_request(q, &bp->bio1)) | 330 | if (linear_make_request(mddev, &bp->bio1)) |
332 | generic_make_request(&bp->bio1); | 331 | generic_make_request(&bp->bio1); |
333 | if (linear_make_request(q, &bp->bio2)) | 332 | if (linear_make_request(mddev, &bp->bio2)) |
334 | generic_make_request(&bp->bio2); | 333 | generic_make_request(&bp->bio2); |
335 | bio_pair_release(bp); | 334 | bio_pair_release(bp); |
336 | return 0; | 335 | return 0; |