diff options
author | Paul Mundt | 2011-02-15 16:48:28 +0900 |
---|---|---|
committer | Paul Mundt | 2011-02-15 16:48:28 +0900 |
commit | 18e9550273b8a4d28044202f51cb2c3c9254d7c6 (patch) | |
tree | a162ad088c712bd6dc35c7013cd30999731823c2 /drivers/md/raid10.c | |
parent | 17292ecc07857bb16737c340dda289ab9d219e05 (diff) | |
parent | d4f7e513234019a005c4d33477189f2a4e53bb9c (diff) |
Merge branch 'sh/st-integration' into sh-latest
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 69b659544390..3b607b28741b 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -2463,11 +2463,13 @@ static void *raid10_takeover_raid0(mddev_t *mddev) mddev->recovery_cp = MaxSector; conf = setup_conf(mddev); - if (!IS_ERR(conf)) + if (!IS_ERR(conf)) { list_for_each_entry(rdev, &mddev->disks, same_set) if (rdev->raid_disk >= 0) rdev->new_raid_disk = rdev->raid_disk * 2; - + conf->barrier = 1; + } + return conf; } |