Lines Matching full:faulty
607 !test_bit(Faulty, &rdev->flags)) { in submit_flushes()
964 if (!test_bit(Faulty, &rdev->flags) in super_written()
993 if (test_bit(Faulty, &rdev->flags)) in md_super_write()
1328 clear_bit(Faulty, &rdev->flags); in super_90_validate()
1423 set_bit(Faulty, &rdev->flags); in super_90_validate()
1536 test_bit(Faulty, &rdev2->flags)) in super_90_sync()
1552 if (test_bit(Faulty, &rdev2->flags)) in super_90_sync()
1570 /* now set the "removed" and "faulty" bits on any missing devices */ in super_90_sync()
1842 clear_bit(Faulty, &rdev->flags); in super_1_validate()
1964 case MD_DISK_ROLE_FAULTY: /* faulty */ in super_1_validate()
1965 set_bit(Faulty, &rdev->flags); in super_1_validate()
2162 if (test_bit(Faulty, &rdev2->flags)) in super_1_sync()
2316 if (test_bit(Faulty, &rdev->flags) || in match_mddev_units()
2321 if (test_bit(Faulty, &rdev2->flags) || in match_mddev_units()
2354 if (test_bit(Faulty, &rdev->flags)) in md_integrity_register()
2659 if ((rdev->raid_disk >= 0) && !test_bit(Faulty, &rdev->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()
3004 if (cmd_match(buf, "faulty") && rdev->mddev->pers) { in state_store()
3006 if (test_bit(Faulty, &rdev->flags)) in state_store()
3044 if (!test_bit(Faulty, &rdev->flags) && in state_store()
3122 else if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1) && in state_store()
3125 * have their local Faulty bit cleared. If any writes in state_store()
3132 clear_bit(Faulty, &rdev->flags); in state_store()
3259 clear_bit(Faulty, &rdev->flags); in slot_store()
3705 * mark the device faulty if:
3710 * a faulty rdev _never_ has rdev->sb set.
3738 pr_warn("md: %s has zero or unknown size, marking faulty!\n", in md_import_device()
5856 if (test_bit(Faulty, &rdev->flags)) in md_run()
6156 !test_bit(Faulty, &rdev->flags)) in restart_array()
6163 /* Don't restart rw with journal missing/faulty */ in restart_array()
6600 if (test_bit(Faulty, &rdev->flags)) in get_array_info()
6697 if (test_bit(Faulty, &rdev->flags)) in get_disk_info()
7003 if (test_bit(Faulty, &rdev->flags)) { in hot_add_disk()
7004 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()
7990 if (!rdev || test_bit(Faulty, &rdev->flags)) in md_error()
8059 !test_bit(Faulty, &rdev->flags) && in status_resync()
8264 if (test_bit(Faulty, &rdev->flags)) { in md_seq_show()
8775 !test_bit(Faulty, &rdev->flags) && in md_do_sync()
8994 !test_bit(Faulty, &rdev->flags) && in md_do_sync()
9058 test_bit(Faulty, &rdev->flags) && in remove_and_add_spares()
9060 /* Faulty non-Blocked devices with nr_pending == 0 in remove_and_add_spares()
9062 * never get Faulty cleared, and never get Blocked set. in remove_and_add_spares()
9106 !test_bit(Faulty, &rdev->flags)) in remove_and_add_spares()
9110 if (test_bit(Faulty, &rdev->flags)) in remove_and_add_spares()
9174 * This thread also removes any faulty devices (with nr_pending == 0).
9180 * 4/ If there are any faulty devices, remove them.
9601 if (test_bit(Faulty, &rdev2->flags)) in check_sb_changes()
9633 /* device faulty in check_sb_changes()
9635 * as faulty. The recovery is performed by the in check_sb_changes()
9747 if (!test_bit(Faulty, &rdev->flags)) in md_reload_sb()
9806 if (test_bit(Faulty, &rdev->flags)) in md_autostart_arrays()