diff options
Diffstat (limited to 'drivers/md/multipath.c')
-rw-r--r-- | drivers/md/multipath.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 4e4bfde3db5d..2ae2d709cb15 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -462,10 +462,6 @@ static int multipath_run (mddev_t *mddev) | |||
462 | } | 462 | } |
463 | memset(conf->multipaths, 0, sizeof(struct multipath_info)*mddev->raid_disks); | 463 | memset(conf->multipaths, 0, sizeof(struct multipath_info)*mddev->raid_disks); |
464 | 464 | ||
465 | mddev->queue->unplug_fn = multipath_unplug; | ||
466 | |||
467 | mddev->queue->issue_flush_fn = multipath_issue_flush; | ||
468 | |||
469 | conf->working_disks = 0; | 465 | conf->working_disks = 0; |
470 | ITERATE_RDEV(mddev,rdev,tmp) { | 466 | ITERATE_RDEV(mddev,rdev,tmp) { |
471 | disk_idx = rdev->raid_disk; | 467 | disk_idx = rdev->raid_disk; |
@@ -528,6 +524,10 @@ static int multipath_run (mddev_t *mddev) | |||
528 | * Ok, everything is just fine now | 524 | * Ok, everything is just fine now |
529 | */ | 525 | */ |
530 | mddev->array_size = mddev->size; | 526 | mddev->array_size = mddev->size; |
527 | |||
528 | mddev->queue->unplug_fn = multipath_unplug; | ||
529 | mddev->queue->issue_flush_fn = multipath_issue_flush; | ||
530 | |||
531 | return 0; | 531 | return 0; |
532 | 532 | ||
533 | out_free_conf: | 533 | out_free_conf: |