|
@@ -7381,8 +7381,10 @@ void md_do_sync(struct md_thread *thread)
|
|
/* just incase thread restarts... */
|
|
/* just incase thread restarts... */
|
|
if (test_bit(MD_RECOVERY_DONE, &mddev->recovery))
|
|
if (test_bit(MD_RECOVERY_DONE, &mddev->recovery))
|
|
return;
|
|
return;
|
|
- if (mddev->ro) /* never try to sync a read-only array */
|
|
|
|
|
|
+ if (mddev->ro) {/* never try to sync a read-only array */
|
|
|
|
+ set_bit(MD_RECOVERY_INTR, &mddev->recovery);
|
|
return;
|
|
return;
|
|
|
|
+ }
|
|
|
|
|
|
if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) {
|
|
if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) {
|
|
if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) {
|
|
if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) {
|