diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 4b7e68276d6c2af928130ff37709194554e8d7f6..8741b10db2bc2003cc16819bfefe566e1895d8de 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -3263,6 +3263,7 @@ static int raid1_reshape(struct mddev *mddev) /* ok, everything is stopped */ oldpool = conf->r1bio_pool; conf->r1bio_pool = newpool; + init_waitqueue_head(&conf->r1bio_pool.wait); for (d = d2 = 0; d < conf->raid_disks; d++) { struct md_rdev *rdev = conf->mirrors[d].rdev;