Lines Matching refs:test_bit
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()
173 if (!j || test_bit(MD_RECOVERY_SYNC, in r10buf_pool_alloc()
297 if (!test_bit(R10BIO_Uptodate, &r10_bio->state)) in raid_end_bio_io()
381 if (!_enough(conf, test_bit(R10BIO_Previous, &r10_bio->state), in raid10_end_read_request()
407 !test_bit(R10BIO_Degraded, &r10_bio->state), in close_write()
415 if (test_bit(R10BIO_WriteError, &r10_bio->state)) in one_write_done()
419 if (test_bit(R10BIO_MadeGood, &r10_bio->state)) in one_write_done()
465 if (test_bit(FailFast, &rdev->flags) && in raid10_end_write_request()
474 if (!test_bit(Faulty, &rdev->flags)) in raid10_end_write_request()
505 if (test_bit(In_sync, &rdev->flags) && in raid10_end_write_request()
506 !test_bit(Faulty, &rdev->flags)) in raid10_end_write_request()
753 if (rdev == NULL || test_bit(Faulty, &rdev->flags) || in read_balance()
757 test_bit(Faulty, &rdev->flags)) in read_balance()
759 if (!test_bit(In_sync, &rdev->flags) && in read_balance()
888 if (test_bit(Faulty, &rdev->flags)) { in flush_pending_writes()
980 test_bit(MD_RECOVERY_RUNNING, in wait_barrier()
1039 if (!test_bit(MD_RECOVERY_RESHAPE, &rdev->mddev->recovery) || in choose_data_offset()
1040 test_bit(R10BIO_Previous, &r10_bio->state)) in choose_data_offset()
1081 if (test_bit(Faulty, &rdev->flags)) { in raid10_unplug()
1104 while (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in regular_request_wait()
1198 if (test_bit(FailFast, &rdev->flags) && in raid10_read_request()
1199 test_bit(R10BIO_FailFast, &r10_bio->state)) in raid10_read_request()
1247 if (!replacement && test_bit(FailFast, in raid10_write_one_disk()
1306 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in raid10_write_request()
1319 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in raid10_write_request()
1354 if (rdev && unlikely(test_bit(Blocked, &rdev->flags))) { in raid10_write_request()
1359 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { in raid10_write_request()
1364 if (rdev && (test_bit(Faulty, &rdev->flags))) in raid10_write_request()
1366 if (rrdev && (test_bit(Faulty, &rrdev->flags))) in raid10_write_request()
1376 if (rdev && test_bit(WriteErrorSeen, &rdev->flags)) { in raid10_write_request()
1560 seq_printf(seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); in raid10_status()
1593 test_bit(In_sync, &rdev->flags)) in _enough()
1631 if (test_bit(In_sync, &rdev->flags) && !mddev->fail_last_dev in raid10_error()
1676 i, !test_bit(In_sync, &rdev->flags), in print_conf()
1677 !test_bit(Faulty, &rdev->flags), in print_conf()
1706 && !test_bit(Faulty, &tmp->replacement->flags) in raid10_spare_active()
1724 && !test_bit(Faulty, &tmp->rdev->flags) in raid10_spare_active()
1771 if (!test_bit(WantReplacement, &p->rdev->flags) || in raid10_add_disk()
1825 if (test_bit(In_sync, &rdev->flags) || in raid10_remove_disk()
1833 if (!test_bit(Faulty, &rdev->flags) && in raid10_remove_disk()
1842 if (!test_bit(RemoveSynchronized, &rdev->flags)) { in raid10_remove_disk()
1887 if (test_bit(R10BIO_IsRecover, &r10_bio->state) || in __end_sync_read()
1921 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || in end_sync_request()
1922 test_bit(R10BIO_WriteError, &r10_bio->state)) in end_sync_request()
1930 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || in end_sync_request()
1931 test_bit(R10BIO_WriteError, &r10_bio->state)) in end_sync_request()
2055 if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) in sync_request_write()
2058 } else if (test_bit(FailFast, &rdev->flags)) { in sync_request_write()
2085 if (test_bit(FailFast, &conf->mirrors[d].rdev->flags)) in sync_request_write()
2217 if (!test_bit(R10BIO_Uptodate, &r10_bio->state)) { in recovery_request_write()
2292 && (rw == READ || test_bit(WriteErrorSeen, &rdev->flags))) in r10_sync_page_io()
2330 if (test_bit(Faulty, &rdev->flags)) in fix_read_error()
2368 test_bit(In_sync, &rdev->flags) && in fix_read_error()
2369 !test_bit(Faulty, &rdev->flags) && in fix_read_error()
2423 test_bit(Faulty, &rdev->flags) || in fix_read_error()
2424 !test_bit(In_sync, &rdev->flags)) in fix_read_error()
2459 test_bit(Faulty, &rdev->flags) || in fix_read_error()
2460 !test_bit(In_sync, &rdev->flags)) in fix_read_error()
2584 else if (!test_bit(FailFast, &rdev->flags)) { in handle_read_error()
2608 if (test_bit(R10BIO_IsSync, &r10_bio->state) || in handle_write_completed()
2609 test_bit(R10BIO_IsRecover, &r10_bio->state)) { in handle_write_completed()
2690 if (test_bit(R10BIO_WriteError, in handle_write_completed()
2710 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) { in raid10d()
2713 if (!test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) { in raid10d()
2727 if (test_bit(R10BIO_WriteError, in raid10d()
2751 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || in raid10d()
2752 test_bit(R10BIO_WriteError, &r10_bio->state)) in raid10d()
2754 else if (test_bit(R10BIO_IsReshape, &r10_bio->state)) in raid10d()
2756 else if (test_bit(R10BIO_IsSync, &r10_bio->state)) in raid10d()
2758 else if (test_bit(R10BIO_IsRecover, &r10_bio->state)) in raid10d()
2760 else if (test_bit(R10BIO_ReadError, &r10_bio->state)) in raid10d()
2798 if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery) || in raid10_alloc_init_r10buf()
2799 test_bit(MD_RECOVERY_RESHAPE, &conf->mddev->recovery)) in raid10_alloc_init_r10buf()
2914 !test_bit(MD_RECOVERY_SYNC, &mddev->recovery) && in raid10_sync_request()
2915 !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery) && in raid10_sync_request()
2916 !test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in raid10_sync_request()
2924 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || in raid10_sync_request()
2925 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in raid10_sync_request()
2940 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) { in raid10_sync_request()
2947 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) in raid10_sync_request()
2960 && test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
2981 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in raid10_sync_request()
3025 if (!test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
3046 !test_bit(Faulty, &mrdev->flags) && in raid10_sync_request()
3047 !test_bit(In_sync, &mrdev->flags)) in raid10_sync_request()
3050 !test_bit(Faulty, &mreplace->flags)) in raid10_sync_request()
3069 if (mreplace && test_bit(Faulty, &mreplace->flags)) in raid10_sync_request()
3115 if (rdev == NULL || test_bit(Faulty, &rdev->flags)) { in raid10_sync_request()
3134 !test_bit(In_sync, &rdev->flags)) in raid10_sync_request()
3157 if (test_bit(FailFast, &rdev->flags)) in raid10_sync_request()
3221 if (!test_bit(In_sync, in raid10_sync_request()
3264 test_bit(In_sync, in raid10_sync_request()
3299 !conf->fullsync && !test_bit(MD_RECOVERY_REQUESTED, in raid10_sync_request()
3334 if (rdev == NULL || test_bit(Faulty, &rdev->flags)) { in raid10_sync_request()
3357 if (test_bit(FailFast, &rdev->flags)) in raid10_sync_request()
3364 if (rdev == NULL || test_bit(Faulty, &rdev->flags)) { in raid10_sync_request()
3379 if (test_bit(FailFast, &rdev->flags)) in raid10_sync_request()
3430 test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
3779 if (test_bit(Replacement, &rdev->flags)) { in raid10_run()
3848 !test_bit(In_sync, &disk->rdev->flags)) { in raid10_run()
3857 !test_bit(In_sync, &disk->replacement->flags) && in raid10_run()
4120 if (!rdev || test_bit(Faulty, &rdev->flags)) in calc_degraded()
4122 else if (!test_bit(In_sync, &rdev->flags)) in calc_degraded()
4136 if (!rdev || test_bit(Faulty, &rdev->flags)) in calc_degraded()
4138 else if (!test_bit(In_sync, &rdev->flags)) { in calc_degraded()
4175 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in raid10_start_reshape()
4187 if (!test_bit(In_sync, &rdev->flags) in raid10_start_reshape()
4188 && !test_bit(Faulty, &rdev->flags)) in raid10_start_reshape()
4254 !test_bit(Faulty, &rdev->flags)) in raid10_start_reshape()
4281 !test_bit(Faulty, &rdev->flags)) { in raid10_start_reshape()
4293 && !test_bit(Faulty, &rdev->flags)) { in raid10_start_reshape()
4506 test_bit(MD_RECOVERY_INTR, &mddev->recovery)); in reshape_request()
4507 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { in reshape_request()
4527 BUG_ON(!test_bit(R10BIO_Previous, &r10_bio->state)); in reshape_request()
4598 if (!rdev2 || test_bit(Faulty, &rdev2->flags)) in reshape_request()
4667 if (!test_bit(R10BIO_Uptodate, &r10_bio->state)) in reshape_request_write()
4690 if (!rdev || test_bit(Faulty, &rdev->flags)) { in reshape_request_write()
4706 if (test_bit(MD_RECOVERY_INTR, &conf->mddev->recovery)) in end_reshape()
4772 test_bit(Faulty, &rdev->flags) || in handle_reshape_read_error()
4773 !test_bit(In_sync, &rdev->flags)) in handle_reshape_read_error()
4850 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) in raid10_finish_reshape()