Lines Matching full:faulty

580 		    !test_bit(Faulty, &rdev->flags)) {  in submit_flushes()
961 if (!test_bit(Faulty, &rdev->flags) in super_written()
990 if (test_bit(Faulty, &rdev->flags)) in md_super_write()
1325 clear_bit(Faulty, &rdev->flags); in super_90_validate()
1420 set_bit(Faulty, &rdev->flags); in super_90_validate()
1533 test_bit(Faulty, &rdev2->flags)) in super_90_sync()
1549 if (test_bit(Faulty, &rdev2->flags)) in super_90_sync()
1567 /* now set the "removed" and "faulty" bits on any missing devices */ in super_90_sync()
1839 clear_bit(Faulty, &rdev->flags); in super_1_validate()
1961 case MD_DISK_ROLE_FAULTY: /* faulty */ in super_1_validate()
1962 set_bit(Faulty, &rdev->flags); in super_1_validate()
2159 if (test_bit(Faulty, &rdev2->flags)) in super_1_sync()
2314 if (test_bit(Faulty, &rdev->flags) || in match_mddev_units()
2319 if (test_bit(Faulty, &rdev2->flags) || in match_mddev_units()
2352 if (test_bit(Faulty, &rdev->flags)) in md_integrity_register()
2657 if ((iter->raid_disk >= 0) && !test_bit(Faulty, &iter->flags)) { in does_sb_need_changing()
2667 /* Check if a device has become faulty or a spare become active */ in does_sb_need_changing()
2672 !test_bit(Faulty, &rdev->flags)) in does_sb_need_changing()
2674 /* Device turned faulty? */ in does_sb_need_changing()
2675 if (test_bit(Faulty, &rdev->flags) && (role < 0xfffd)) in does_sb_need_changing()
2812 if (test_bit(Faulty, &rdev->flags)) in md_update_sb()
2832 if (!test_bit(Faulty, &rdev->flags)) { in md_update_sb()
2849 pr_debug("md: %s (skipping faulty)\n", in md_update_sb()
2951 if (test_bit(Faulty, &flags) || in state_show()
2954 len += sprintf(page+len, "faulty%s", sep); in state_show()
2963 && !test_bit(Faulty, &flags))) in state_show()
2965 if (!test_bit(Faulty, &flags) && in state_show()
2990 * faulty - simulates an error in state_store()
3008 if (cmd_match(buf, "faulty") && rdev->mddev->pers) { in state_store()
3010 if (test_bit(Faulty, &rdev->flags)) in state_store()
3049 if (!test_bit(Faulty, &rdev->flags) && in state_store()
3129 else if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1) && in state_store()
3132 * have their local Faulty bit cleared. If any writes in state_store()
3139 clear_bit(Faulty, &rdev->flags); in state_store()
3268 clear_bit(Faulty, &rdev->flags); in slot_store()
3714 * mark the device faulty if:
3719 * a faulty rdev _never_ has rdev->sb set.
3747 pr_warn("md: %s has zero or unknown size, marking faulty!\n", in md_import_device()
5854 if (test_bit(Faulty, &rdev->flags)) in md_run()
6154 !test_bit(Faulty, &rdev->flags)) in restart_array()
6161 /* Don't restart rw with journal missing/faulty */ in restart_array()
6597 if (test_bit(Faulty, &rdev->flags)) in get_array_info()
6694 if (test_bit(Faulty, &rdev->flags)) in get_disk_info()
7002 if (test_bit(Faulty, &rdev->flags)) { in hot_add_disk()
7003 pr_warn("md: can not hot-add faulty %s disk to %s!\n", in hot_add_disk()
7456 if (!test_bit(Faulty, &rdev->flags)) in set_disk_faulty()
7997 if (!rdev || test_bit(Faulty, &rdev->flags)) in md_error()
8066 !test_bit(Faulty, &rdev->flags) && in status_resync()
8275 if (test_bit(Faulty, &rdev->flags)) { in md_seq_show()
8786 !test_bit(Faulty, &rdev->flags) && in md_do_sync()
9005 !test_bit(Faulty, &rdev->flags) && in md_do_sync()
9069 test_bit(Faulty, &rdev->flags) && in remove_and_add_spares()
9071 /* Faulty non-Blocked devices with nr_pending == 0 in remove_and_add_spares()
9073 * never get Faulty cleared, and never get Blocked set. in remove_and_add_spares()
9117 !test_bit(Faulty, &rdev->flags)) in remove_and_add_spares()
9121 if (test_bit(Faulty, &rdev->flags)) in remove_and_add_spares()
9185 * This thread also removes any faulty devices (with nr_pending == 0).
9191 * 4/ If there are any faulty devices, remove them.
9613 if (test_bit(Faulty, &rdev2->flags)) in check_sb_changes()
9645 /* device faulty in check_sb_changes()
9647 * as faulty. The recovery is performed by the in check_sb_changes()
9764 if (!test_bit(Faulty, &rdev->flags)) in md_reload_sb()
9823 if (test_bit(Faulty, &rdev->flags)) in md_autostart_arrays()