Lines Matching full:faulty
569 !test_bit(Faulty, &rdev->flags)) { in submit_flushes()
950 if (!test_bit(Faulty, &rdev->flags) in super_written()
981 if (test_bit(Faulty, &rdev->flags)) in md_super_write()
1316 clear_bit(Faulty, &rdev->flags); in super_90_validate()
1411 set_bit(Faulty, &rdev->flags); in super_90_validate()
1524 test_bit(Faulty, &rdev2->flags)) in super_90_sync()
1540 if (test_bit(Faulty, &rdev2->flags)) in super_90_sync()
1558 /* now set the "removed" and "faulty" bits on any missing devices */ in super_90_sync()
1830 clear_bit(Faulty, &rdev->flags); in super_1_validate()
1952 case MD_DISK_ROLE_FAULTY: /* faulty */ in super_1_validate()
1953 set_bit(Faulty, &rdev->flags); in super_1_validate()
2150 if (test_bit(Faulty, &rdev2->flags)) in super_1_sync()
2305 if (test_bit(Faulty, &rdev->flags) || in match_mddev_units()
2310 if (test_bit(Faulty, &rdev2->flags) || in match_mddev_units()
2343 if (test_bit(Faulty, &rdev->flags)) in md_integrity_register()
2649 if ((iter->raid_disk >= 0) && !test_bit(Faulty, &iter->flags)) { in does_sb_need_changing()
2659 /* Check if a device has become faulty or a spare become active */ in does_sb_need_changing()
2664 !test_bit(Faulty, &rdev->flags)) in does_sb_need_changing()
2666 /* Device turned faulty? */ in does_sb_need_changing()
2667 if (test_bit(Faulty, &rdev->flags) && (role < 0xfffd)) in does_sb_need_changing()
2804 if (test_bit(Faulty, &rdev->flags)) in md_update_sb()
2824 if (!test_bit(Faulty, &rdev->flags)) { in md_update_sb()
2841 pr_debug("md: %s (skipping faulty)\n", in md_update_sb()
2943 if (test_bit(Faulty, &flags) || in state_show()
2946 len += sprintf(page+len, "faulty%s", sep); in state_show()
2955 && !test_bit(Faulty, &flags))) in state_show()
2957 if (!test_bit(Faulty, &flags) && in state_show()
2982 * faulty - simulates an error in state_store()
3000 if (cmd_match(buf, "faulty") && rdev->mddev->pers) { in state_store()
3002 if (test_bit(Faulty, &rdev->flags)) in state_store()
3041 if (!test_bit(Faulty, &rdev->flags) && in state_store()
3121 else if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1) && in state_store()
3124 * have their local Faulty bit cleared. If any writes in state_store()
3131 clear_bit(Faulty, &rdev->flags); in state_store()
3263 clear_bit(Faulty, &rdev->flags); in slot_store()
3709 * mark the device faulty if:
3714 * a faulty rdev _never_ has rdev->sb set.
3742 pr_warn("md: %s has zero or unknown size, marking faulty!\n", in md_import_device()
5863 if (test_bit(Faulty, &rdev->flags)) in md_run()
6163 !test_bit(Faulty, &rdev->flags)) in restart_array()
6170 /* Don't restart rw with journal missing/faulty */ in restart_array()
6608 if (test_bit(Faulty, &rdev->flags)) in get_array_info()
6705 if (test_bit(Faulty, &rdev->flags)) in get_disk_info()
7013 if (test_bit(Faulty, &rdev->flags)) { in hot_add_disk()
7014 pr_warn("md: can not hot-add faulty %s disk to %s!\n", in hot_add_disk()
7467 if (!test_bit(Faulty, &rdev->flags)) in set_disk_faulty()
8008 if (!rdev || test_bit(Faulty, &rdev->flags)) in md_error()
8077 !test_bit(Faulty, &rdev->flags) && in status_resync()
8286 if (test_bit(Faulty, &rdev->flags)) { in md_seq_show()
8797 !test_bit(Faulty, &rdev->flags) && in md_do_sync()
9016 !test_bit(Faulty, &rdev->flags) && in md_do_sync()
9080 test_bit(Faulty, &rdev->flags) && in remove_and_add_spares()
9082 /* Faulty non-Blocked devices with nr_pending == 0 in remove_and_add_spares()
9084 * never get Faulty cleared, and never get Blocked set. in remove_and_add_spares()
9128 !test_bit(Faulty, &rdev->flags)) in remove_and_add_spares()
9132 if (test_bit(Faulty, &rdev->flags)) in remove_and_add_spares()
9196 * This thread also removes any faulty devices (with nr_pending == 0).
9202 * 4/ If there are any faulty devices, remove them.
9624 if (test_bit(Faulty, &rdev2->flags)) in check_sb_changes()
9656 /* device faulty in check_sb_changes()
9658 * as faulty. The recovery is performed by the in check_sb_changes()
9775 if (!test_bit(Faulty, &rdev->flags)) in md_reload_sb()
9834 if (test_bit(Faulty, &rdev->flags)) in md_autostart_arrays()