Lines Matching refs:recovery
129 if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery) || in r10buf_pool_alloc()
130 test_bit(MD_RECOVERY_RESHAPE, &conf->mddev->recovery)) in r10buf_pool_alloc()
174 &conf->mddev->recovery)) { in r10buf_pool_alloc()
463 &rdev->mddev->recovery); in raid10_end_write_request()
1068 if (!test_bit(MD_RECOVERY_RESHAPE, &rdev->mddev->recovery) || in choose_data_offset()
1137 while (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in regular_request_wait()
1434 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in raid10_write_request()
1667 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in raid10_handle_discard()
1680 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in raid10_handle_discard()
2045 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in raid10_error()
2366 &rdev->mddev->recovery); in end_sync_write()
2456 if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) in sync_request_write()
2577 &rdev->mddev->recovery); in fix_recovery_read_error()
2600 &mddev->recovery); in fix_recovery_read_error()
2705 &rdev->mddev->recovery); in r10_sync_page_io()
3206 if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery) || in raid10_alloc_init_r10buf()
3207 test_bit(MD_RECOVERY_RESHAPE, &conf->mddev->recovery)) in raid10_alloc_init_r10buf()
3318 !test_bit(MD_RECOVERY_SYNC, &mddev->recovery) && in raid10_sync_request()
3319 !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery) && in raid10_sync_request()
3320 !test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in raid10_sync_request()
3332 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || in raid10_sync_request()
3333 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in raid10_sync_request()
3348 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) { in raid10_sync_request()
3355 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) in raid10_sync_request()
3368 && test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
3389 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in raid10_sync_request()
3433 if (!test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
3641 &mddev->recovery)) in raid10_sync_request()
3704 &mddev->recovery)) { in raid10_sync_request()
3834 test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
4310 clear_bit(MD_RECOVERY_SYNC, &mddev->recovery); in raid10_run()
4311 clear_bit(MD_RECOVERY_CHECK, &mddev->recovery); in raid10_run()
4312 set_bit(MD_RECOVERY_RESHAPE, &mddev->recovery); in raid10_run()
4313 set_bit(MD_RECOVERY_RUNNING, &mddev->recovery); in raid10_run()
4382 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in raid10_resize()
4576 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in raid10_start_reshape()
4710 clear_bit(MD_RECOVERY_SYNC, &mddev->recovery); in raid10_start_reshape()
4711 clear_bit(MD_RECOVERY_CHECK, &mddev->recovery); in raid10_start_reshape()
4712 clear_bit(MD_RECOVERY_DONE, &mddev->recovery); in raid10_start_reshape()
4713 set_bit(MD_RECOVERY_RESHAPE, &mddev->recovery); in raid10_start_reshape()
4714 set_bit(MD_RECOVERY_RUNNING, &mddev->recovery); in raid10_start_reshape()
4728 mddev->recovery = 0; in raid10_start_reshape()
4907 test_bit(MD_RECOVERY_INTR, &mddev->recovery)); in reshape_request()
4908 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { in reshape_request()
4936 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in reshape_request()
5103 if (test_bit(MD_RECOVERY_INTR, &conf->mddev->recovery)) in end_reshape()
5145 set_bit(MD_RECOVERY_INTR, &mddev->recovery); in handle_reshape_read_error()
5196 &mddev->recovery); in handle_reshape_read_error()
5247 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) in raid10_finish_reshape()
5253 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); in raid10_finish_reshape()