• Home
  • Raw
  • Download

Lines Matching refs:recovery

528 	set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);  in mddev_resume()
2008 &mddev->recovery)) in super_1_validate()
2762 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) && in md_update_sb()
2763 test_bit(MD_RECOVERY_RECOVER, &mddev->recovery) && in md_update_sb()
2764 !test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in md_update_sb()
2900 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in md_update_sb()
2942 set_bit(MD_RECOVERY_RECOVER, &mddev->recovery); in add_bound_rdev()
2943 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in add_bound_rdev()
3092 set_bit(MD_RECOVERY_NEEDED, &rdev->mddev->recovery); in state_store()
3130 set_bit(MD_RECOVERY_NEEDED, &rdev->mddev->recovery); in state_store()
3260 set_bit(MD_RECOVERY_NEEDED, &rdev->mddev->recovery); in slot_store()
3271 if (test_bit(MD_RECOVERY_RUNNING, &rdev->mddev->recovery)) in slot_store()
3356 test_bit(MD_RECOVERY_RUNNING,&mddev->recovery)) in new_offset_store()
4013 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || in level_store()
4363 if (mddev->pers && !test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) in resync_start_store()
4865 unsigned long recovery = mddev->recovery; in action_show() local
4866 if (test_bit(MD_RECOVERY_FROZEN, &recovery)) in action_show()
4868 else if (test_bit(MD_RECOVERY_RUNNING, &recovery) || in action_show()
4869 (md_is_rdwr(mddev) && test_bit(MD_RECOVERY_NEEDED, &recovery))) { in action_show()
4870 if (test_bit(MD_RECOVERY_RESHAPE, &recovery)) in action_show()
4872 else if (test_bit(MD_RECOVERY_SYNC, &recovery)) { in action_show()
4873 if (!test_bit(MD_RECOVERY_REQUESTED, &recovery)) in action_show()
4875 else if (test_bit(MD_RECOVERY_CHECK, &recovery)) in action_show()
4879 } else if (test_bit(MD_RECOVERY_RECOVER, &recovery)) in action_show()
4896 set_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in action_store()
4898 clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in action_store()
4899 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) && in action_store()
4904 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in action_store()
4909 } else if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in action_store()
4912 clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in action_store()
4914 clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in action_store()
4915 set_bit(MD_RECOVERY_RECOVER, &mddev->recovery); in action_store()
4922 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in action_store()
4925 clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in action_store()
4935 set_bit(MD_RECOVERY_CHECK, &mddev->recovery); in action_store()
4938 clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in action_store()
4939 set_bit(MD_RECOVERY_REQUESTED, &mddev->recovery); in action_store()
4940 set_bit(MD_RECOVERY_SYNC, &mddev->recovery); in action_store()
4949 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in action_store()
5091 if (!test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in sync_completed_show()
5098 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || in sync_completed_show()
5099 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in sync_completed_show()
5132 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in min_sync_store()
5175 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in max_sync_store()
5988 mddev->recovery = 0; in md_run()
6093 set_bit(MD_RECOVERY_RECOVER, &mddev->recovery); in md_run()
6094 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in md_run()
6157 set_bit(MD_RECOVERY_WAIT, &mddev->recovery); in md_start()
6160 clear_bit(MD_RECOVERY_WAIT, &mddev->recovery); in md_start()
6202 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in restart_array()
6242 mddev->recovery = 0; in md_clean()
6260 set_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in __md_stop_writes()
6264 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in __md_stop_writes()
6325 clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in __md_stop()
6351 if (!test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) { in md_set_readonly()
6353 set_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in md_set_readonly()
6356 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in md_set_readonly()
6357 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in md_set_readonly()
6365 &mddev->recovery)); in md_set_readonly()
6373 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) { in md_set_readonly()
6393 clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in md_set_readonly()
6394 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in md_set_readonly()
6414 if (!test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) { in do_md_stop()
6416 set_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in do_md_stop()
6419 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in do_md_stop()
6420 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in do_md_stop()
6429 &mddev->recovery))); in do_md_stop()
6436 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) { in do_md_stop()
6440 clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); in do_md_stop()
6441 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in do_md_stop()
7064 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in hot_add_disk()
7081 if (mddev->recovery || mddev->sync_thread) in set_bitmap_file()
7274 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || in update_size()
7313 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || in update_raid_disks()
7314 test_bit(MD_RESYNCING_REMOTE, &mddev->recovery) || in update_raid_disks()
7411 if (mddev->recovery || mddev->sync_thread) { in update_array_info()
7613 &mddev->recovery), in md_ioctl()
7738 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in md_ioctl()
8041 set_bit(MD_RECOVERY_RECOVER, &mddev->recovery); in md_error()
8043 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in md_error()
8045 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in md_error()
8083 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || in status_resync()
8084 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in status_resync()
8091 if (test_bit(MD_RECOVERY_DONE, &mddev->recovery)) in status_resync()
8100 if (test_bit(MD_RESYNCING_REMOTE, &mddev->recovery)) { in status_resync()
8154 (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)? in status_resync()
8156 (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)? in status_resync()
8158 (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) ? in status_resync()
8537 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in md_done_sync()
8538 set_bit(MD_RECOVERY_ERROR, &mddev->recovery); in md_done_sync()
8563 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in md_write_start()
8764 if (test_bit(MD_RECOVERY_DONE, &mddev->recovery) || in md_do_sync()
8765 test_bit(MD_RECOVERY_WAIT, &mddev->recovery)) in md_do_sync()
8768 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in md_do_sync()
8778 if (!(test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || in md_do_sync()
8779 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) || in md_do_sync()
8780 test_bit(MD_RECOVERY_RECOVER, &mddev->recovery)) in md_do_sync()
8786 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in md_do_sync()
8787 if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) { in md_do_sync()
8790 } else if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) { in md_do_sync()
8795 } else if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in md_do_sync()
8823 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) in md_do_sync()
8847 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery) && in md_do_sync()
8868 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in md_do_sync()
8875 if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) in md_do_sync()
8880 } else if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) { in md_do_sync()
8961 if (!test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in md_do_sync()
8974 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) && in md_do_sync()
8983 !test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { in md_do_sync()
8992 &mddev->recovery)); in md_do_sync()
8995 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) in md_do_sync()
9000 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in md_do_sync()
9009 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) in md_do_sync()
9041 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) in md_do_sync()
9074 test_bit(MD_RECOVERY_INTR, &mddev->recovery) in md_do_sync()
9082 if (!test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in md_do_sync()
9083 !test_bit(MD_RECOVERY_INTR, &mddev->recovery) && in md_do_sync()
9090 if (!test_bit(MD_RECOVERY_CHECK, &mddev->recovery) && in md_do_sync()
9092 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in md_do_sync()
9093 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { in md_do_sync()
9098 &mddev->recovery)) in md_do_sync()
9108 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery)) in md_do_sync()
9110 if (!test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in md_do_sync()
9111 test_bit(MD_RECOVERY_RECOVER, &mddev->recovery)) { in md_do_sync()
9132 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in md_do_sync()
9133 !test_bit(MD_RECOVERY_INTR, &mddev->recovery) && in md_do_sync()
9147 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { in md_do_sync()
9149 if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) in md_do_sync()
9152 } else if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) in md_do_sync()
9154 set_bit(MD_RECOVERY_DONE, &mddev->recovery); in md_do_sync()
9172 if (this && test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in remove_and_add_spares()
9268 clear_bit(MD_RECOVERY_SYNC, &mddev->recovery); in md_start_sync()
9269 clear_bit(MD_RECOVERY_RESHAPE, &mddev->recovery); in md_start_sync()
9270 clear_bit(MD_RECOVERY_REQUESTED, &mddev->recovery); in md_start_sync()
9271 clear_bit(MD_RECOVERY_CHECK, &mddev->recovery); in md_start_sync()
9272 clear_bit(MD_RECOVERY_RUNNING, &mddev->recovery); in md_start_sync()
9275 &mddev->recovery)) in md_start_sync()
9336 !test_bit(MD_RECOVERY_NEEDED, &mddev->recovery)) in md_check_recovery()
9340 test_bit(MD_RECOVERY_NEEDED, &mddev->recovery) || in md_check_recovery()
9341 test_bit(MD_RECOVERY_DONE, &mddev->recovery) || in md_check_recovery()
9376 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in md_check_recovery()
9378 clear_bit(MD_RECOVERY_RECOVER, &mddev->recovery); in md_check_recovery()
9379 clear_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in md_check_recovery()
9405 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) && in md_check_recovery()
9406 !test_bit(MD_RECOVERY_DONE, &mddev->recovery)) { in md_check_recovery()
9408 clear_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in md_check_recovery()
9420 set_bit(MD_RECOVERY_RUNNING, &mddev->recovery); in md_check_recovery()
9425 clear_bit(MD_RECOVERY_INTR, &mddev->recovery); in md_check_recovery()
9426 clear_bit(MD_RECOVERY_DONE, &mddev->recovery); in md_check_recovery()
9428 if (!test_and_clear_bit(MD_RECOVERY_NEEDED, &mddev->recovery) || in md_check_recovery()
9429 test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) in md_check_recovery()
9443 set_bit(MD_RECOVERY_RESHAPE, &mddev->recovery); in md_check_recovery()
9444 clear_bit(MD_RECOVERY_RECOVER, &mddev->recovery); in md_check_recovery()
9446 clear_bit(MD_RECOVERY_SYNC, &mddev->recovery); in md_check_recovery()
9447 clear_bit(MD_RECOVERY_CHECK, &mddev->recovery); in md_check_recovery()
9448 clear_bit(MD_RECOVERY_REQUESTED, &mddev->recovery); in md_check_recovery()
9449 set_bit(MD_RECOVERY_RECOVER, &mddev->recovery); in md_check_recovery()
9451 set_bit(MD_RECOVERY_SYNC, &mddev->recovery); in md_check_recovery()
9452 clear_bit(MD_RECOVERY_RECOVER, &mddev->recovery); in md_check_recovery()
9453 } else if (!test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) in md_check_recovery()
9471 clear_bit(MD_RECOVERY_RUNNING, &mddev->recovery); in md_check_recovery()
9474 &mddev->recovery)) in md_check_recovery()
9493 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery) && in md_reap_sync_thread()
9494 !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery) && in md_reap_sync_thread()
9503 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in md_reap_sync_thread()
9523 clear_bit(MD_RECOVERY_RUNNING, &mddev->recovery); in md_reap_sync_thread()
9524 clear_bit(MD_RECOVERY_DONE, &mddev->recovery); in md_reap_sync_thread()
9525 clear_bit(MD_RECOVERY_SYNC, &mddev->recovery); in md_reap_sync_thread()
9526 clear_bit(MD_RECOVERY_RESHAPE, &mddev->recovery); in md_reap_sync_thread()
9527 clear_bit(MD_RECOVERY_REQUESTED, &mddev->recovery); in md_reap_sync_thread()
9528 clear_bit(MD_RECOVERY_CHECK, &mddev->recovery); in md_reap_sync_thread()
9539 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in md_reap_sync_thread()
9751 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in check_sb_changes()
9776 if (test_bit(MD_RESYNCING_REMOTE, &mddev->recovery) && in check_sb_changes()
9787 } else if (test_bit(MD_RESYNCING_REMOTE, &mddev->recovery) && in check_sb_changes()