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()
476 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()
866 if (rdev && !test_bit(Faulty, &rdev->flags)) { in raid10_congested()
913 if (test_bit(Faulty, &rdev->flags)) { in flush_pending_writes()
1056 if (!test_bit(MD_RECOVERY_RESHAPE, &rdev->mddev->recovery) || in choose_data_offset()
1057 test_bit(R10BIO_Previous, &r10_bio->state)) in choose_data_offset()
1098 if (test_bit(Faulty, &rdev->flags)) { in raid10_unplug()
1121 while (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in regular_request_wait()
1215 if (test_bit(FailFast, &rdev->flags) && in raid10_read_request()
1216 test_bit(R10BIO_FailFast, &r10_bio->state)) in raid10_read_request()
1264 if (!replacement && test_bit(FailFast, in raid10_write_one_disk()
1323 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in raid10_write_request()
1336 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in raid10_write_request()
1371 if (rdev && unlikely(test_bit(Blocked, &rdev->flags))) { in raid10_write_request()
1376 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { in raid10_write_request()
1381 if (rdev && (test_bit(Faulty, &rdev->flags))) in raid10_write_request()
1383 if (rrdev && (test_bit(Faulty, &rrdev->flags))) in raid10_write_request()
1393 if (rdev && test_bit(WriteErrorSeen, &rdev->flags)) { in raid10_write_request()
1577 seq_printf(seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); in raid10_status()
1610 test_bit(In_sync, &rdev->flags)) in _enough()
1648 if (test_bit(In_sync, &rdev->flags) && !mddev->fail_last_dev in raid10_error()
1693 i, !test_bit(In_sync, &rdev->flags), in print_conf()
1694 !test_bit(Faulty, &rdev->flags), in print_conf()
1723 && !test_bit(Faulty, &tmp->replacement->flags) in raid10_spare_active()
1741 && !test_bit(Faulty, &tmp->rdev->flags) in raid10_spare_active()
1788 if (!test_bit(WantReplacement, &p->rdev->flags) || in raid10_add_disk()
1839 if (test_bit(In_sync, &rdev->flags) || in raid10_remove_disk()
1847 if (!test_bit(Faulty, &rdev->flags) && in raid10_remove_disk()
1856 if (!test_bit(RemoveSynchronized, &rdev->flags)) { in raid10_remove_disk()
1901 if (test_bit(R10BIO_IsRecover, &r10_bio->state) || in __end_sync_read()
1935 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || in end_sync_request()
1936 test_bit(R10BIO_WriteError, &r10_bio->state)) in end_sync_request()
1944 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || in end_sync_request()
1945 test_bit(R10BIO_WriteError, &r10_bio->state)) in end_sync_request()
2069 if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) in sync_request_write()
2072 } else if (test_bit(FailFast, &rdev->flags)) { in sync_request_write()
2099 if (test_bit(FailFast, &conf->mirrors[d].rdev->flags)) in sync_request_write()
2231 if (!test_bit(R10BIO_Uptodate, &r10_bio->state)) { in recovery_request_write()
2306 && (rw == READ || test_bit(WriteErrorSeen, &rdev->flags))) in r10_sync_page_io()
2344 if (test_bit(Faulty, &rdev->flags)) in fix_read_error()
2382 test_bit(In_sync, &rdev->flags) && in fix_read_error()
2383 !test_bit(Faulty, &rdev->flags) && in fix_read_error()
2437 test_bit(Faulty, &rdev->flags) || in fix_read_error()
2438 !test_bit(In_sync, &rdev->flags)) in fix_read_error()
2473 test_bit(Faulty, &rdev->flags) || in fix_read_error()
2474 !test_bit(In_sync, &rdev->flags)) in fix_read_error()
2598 else if (!test_bit(FailFast, &rdev->flags)) { in handle_read_error()
2622 if (test_bit(R10BIO_IsSync, &r10_bio->state) || in handle_write_completed()
2623 test_bit(R10BIO_IsRecover, &r10_bio->state)) { in handle_write_completed()
2704 if (test_bit(R10BIO_WriteError, in handle_write_completed()
2724 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) { in raid10d()
2727 if (!test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) { in raid10d()
2741 if (test_bit(R10BIO_WriteError, in raid10d()
2765 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || in raid10d()
2766 test_bit(R10BIO_WriteError, &r10_bio->state)) in raid10d()
2768 else if (test_bit(R10BIO_IsReshape, &r10_bio->state)) in raid10d()
2770 else if (test_bit(R10BIO_IsSync, &r10_bio->state)) in raid10d()
2772 else if (test_bit(R10BIO_IsRecover, &r10_bio->state)) in raid10d()
2774 else if (test_bit(R10BIO_ReadError, &r10_bio->state)) in raid10d()
2812 if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery) || in raid10_alloc_init_r10buf()
2813 test_bit(MD_RECOVERY_RESHAPE, &conf->mddev->recovery)) in raid10_alloc_init_r10buf()
2928 !test_bit(MD_RECOVERY_SYNC, &mddev->recovery) && in raid10_sync_request()
2929 !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery) && in raid10_sync_request()
2930 !test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && in raid10_sync_request()
2938 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || in raid10_sync_request()
2939 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in raid10_sync_request()
2954 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) { in raid10_sync_request()
2961 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) in raid10_sync_request()
2974 && test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
2995 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in raid10_sync_request()
3039 if (!test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
3060 !test_bit(Faulty, &mrdev->flags) && in raid10_sync_request()
3061 !test_bit(In_sync, &mrdev->flags)) in raid10_sync_request()
3064 !test_bit(Faulty, &mreplace->flags)) in raid10_sync_request()
3083 if (mreplace && test_bit(Faulty, &mreplace->flags)) in raid10_sync_request()
3129 if (rdev == NULL || test_bit(Faulty, &rdev->flags)) { in raid10_sync_request()
3148 !test_bit(In_sync, &rdev->flags)) in raid10_sync_request()
3171 if (test_bit(FailFast, &rdev->flags)) in raid10_sync_request()
3235 if (!test_bit(In_sync, in raid10_sync_request()
3278 test_bit(In_sync, in raid10_sync_request()
3313 !conf->fullsync && !test_bit(MD_RECOVERY_REQUESTED, in raid10_sync_request()
3348 if (rdev == NULL || test_bit(Faulty, &rdev->flags)) { in raid10_sync_request()
3371 if (test_bit(FailFast, &rdev->flags)) in raid10_sync_request()
3378 if (rdev == NULL || test_bit(Faulty, &rdev->flags)) { in raid10_sync_request()
3393 if (test_bit(FailFast, &rdev->flags)) in raid10_sync_request()
3444 test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in raid10_sync_request()
3788 if (test_bit(Replacement, &rdev->flags)) { in raid10_run()
3857 !test_bit(In_sync, &disk->rdev->flags)) { in raid10_run()
3866 !test_bit(In_sync, &disk->replacement->flags) && in raid10_run()
4142 if (!rdev || test_bit(Faulty, &rdev->flags)) in calc_degraded()
4144 else if (!test_bit(In_sync, &rdev->flags)) in calc_degraded()
4158 if (!rdev || test_bit(Faulty, &rdev->flags)) in calc_degraded()
4160 else if (!test_bit(In_sync, &rdev->flags)) { in calc_degraded()
4197 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) in raid10_start_reshape()
4209 if (!test_bit(In_sync, &rdev->flags) in raid10_start_reshape()
4210 && !test_bit(Faulty, &rdev->flags)) in raid10_start_reshape()
4276 !test_bit(Faulty, &rdev->flags)) in raid10_start_reshape()
4303 !test_bit(Faulty, &rdev->flags)) { in raid10_start_reshape()
4315 && !test_bit(Faulty, &rdev->flags)) { in raid10_start_reshape()
4528 test_bit(MD_RECOVERY_INTR, &mddev->recovery)); in reshape_request()
4529 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { in reshape_request()
4549 BUG_ON(!test_bit(R10BIO_Previous, &r10_bio->state)); in reshape_request()
4620 if (!rdev2 || test_bit(Faulty, &rdev2->flags)) in reshape_request()
4689 if (!test_bit(R10BIO_Uptodate, &r10_bio->state)) in reshape_request_write()
4712 if (!rdev || test_bit(Faulty, &rdev->flags)) { in reshape_request_write()
4728 if (test_bit(MD_RECOVERY_INTR, &conf->mddev->recovery)) in end_reshape()
4802 test_bit(Faulty, &rdev->flags) || in handle_reshape_read_error()
4803 !test_bit(In_sync, &rdev->flags)) in handle_reshape_read_error()
4880 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) in raid10_finish_reshape()