|
@@ -1785,7 +1785,9 @@ int bitmap_load(struct mddev *mddev)
|
|
* re-add of a missing device */
|
|
* re-add of a missing device */
|
|
start = mddev->recovery_cp;
|
|
start = mddev->recovery_cp;
|
|
|
|
|
|
|
|
+ mutex_lock(&mddev->bitmap_info.mutex);
|
|
err = bitmap_init_from_disk(bitmap, start);
|
|
err = bitmap_init_from_disk(bitmap, start);
|
|
|
|
+ mutex_unlock(&mddev->bitmap_info.mutex);
|
|
|
|
|
|
if (err)
|
|
if (err)
|
|
goto out;
|
|
goto out;
|