Lines Matching defs:failed
790 int locked=0, uptodate=0, to_read=0, to_write=0, failed=0, written=0;
836 failed++;
840 PRINTK("locked=%d uptodate=%d to_read=%d to_write=%d failed=%d failed_num=%d\n",
841 locked, uptodate, to_read, to_write, failed, failed_num);
843 * need to be failed
845 if (failed > 1 && to_read+to_write) {
867 if (failed > 1 && syncing) {
874 * is safe, or on a failed drive
879 || (failed == 1 && failed_num == sh->pd_idx))
881 /* any written block on a uptodate or failed drive can be returned */
905 if (to_read || (syncing && (uptodate+failed < disks))) {
909 (sh->bh_read[i] || syncing || (failed && sh->bh_read[failed_num]))) {
921 a failed drive, or any pending writes then sidestep the cache */
924 ! syncing && !failed && !to_write) {
1013 || (i==sh->pd_idx && failed == 0))
1029 !test_bit(STRIPE_INSYNC, &sh->state) && failed <= 1) {
1031 if (failed == 0) {
1045 if (failed==0)
1295 * shutdown. Reconstruction on spare drives in case of a failed drive
1467 printk(KERN_ERR "raid5: not enough operational devices for md%d (%d/%d failed)\n", mdidx(mddev), conf->failed_disks, conf->raid_disks);
1545 printk(KERN_ALERT "raid5: failed to run raid set md%d\n", mdidx(mddev));
1701 * Find the failed disk within the RAID5 configuration ...
1812 * with the failed disk. (only the first 'conf->raid_disks'
1875 * (careful, 'failed' and 'spare' are switched from now on)