Lines Matching refs:qd_idx
125 if (sh->qd_idx == sh->disks - 1) in raid6_d0()
128 return sh->qd_idx + 1; in raid6_d0()
150 if (idx == sh->qd_idx) in raid6_idx_to_slot()
952 while (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in stripe_add_to_batch_list()
1645 if (i == sh->qd_idx || i == sh->pd_idx || in set_syndrome_sources()
1677 int qd_idx = sh->qd_idx; in ops_run_compute6_1() local
1705 if (target == qd_idx) { in ops_run_compute6_1()
1718 if (i == target || i == qd_idx) in ops_run_compute6_1()
1801 int qd_idx = sh->qd_idx; in ops_run_compute6_2() local
1804 if (target == qd_idx) in ops_run_compute6_2()
1811 if (i == data_target || i == qd_idx) in ops_run_compute6_2()
2010 int qd_idx = sh->qd_idx; in ops_complete_reconstruct() local
2026 if (dev->written || i == pd_idx || i == qd_idx) { in ops_complete_reconstruct()
2166 if (sh->pd_idx == i || sh->qd_idx == i) in ops_run_reconstruct6()
2174 set_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in ops_run_reconstruct6()
2229 int qd_idx = sh->qd_idx; in ops_run_check_p() local
2249 if (i == pd_idx || i == qd_idx) in ops_run_check_p()
2860 if (sh->qd_idx >= 0 && sh->pd_idx == i) in raid5_end_read_request()
3007 int pd_idx, qd_idx; in raid5_compute_sector() local
3035 pd_idx = qd_idx = -1; in raid5_compute_sector()
3076 qd_idx = pd_idx + 1; in raid5_compute_sector()
3079 qd_idx = 0; in raid5_compute_sector()
3085 qd_idx = pd_idx + 1; in raid5_compute_sector()
3088 qd_idx = 0; in raid5_compute_sector()
3094 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3099 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3105 qd_idx = 1; in raid5_compute_sector()
3110 qd_idx = data_disks + 1; in raid5_compute_sector()
3118 qd_idx = pd_idx + 1; in raid5_compute_sector()
3121 qd_idx = 0; in raid5_compute_sector()
3134 qd_idx = pd_idx + 1; in raid5_compute_sector()
3137 qd_idx = 0; in raid5_compute_sector()
3146 qd_idx = (pd_idx + raid_disks - 1) % raid_disks; in raid5_compute_sector()
3156 qd_idx = raid_disks - 1; in raid5_compute_sector()
3163 qd_idx = raid_disks - 1; in raid5_compute_sector()
3169 qd_idx = raid_disks - 1; in raid5_compute_sector()
3175 qd_idx = raid_disks - 1; in raid5_compute_sector()
3181 qd_idx = raid_disks - 1; in raid5_compute_sector()
3192 sh->qd_idx = qd_idx; in raid5_compute_sector()
3249 if (i == sh->qd_idx) in raid5_compute_blocknr()
3314 || sh2.qd_idx != sh->qd_idx) { in raid5_compute_blocknr()
3382 int i, pd_idx = sh->pd_idx, qd_idx = sh->qd_idx, disks = sh->disks; in schedule_reconstruction() local
3431 (!(test_bit(R5_UPTODATE, &sh->dev[qd_idx].flags) || in schedule_reconstruction()
3432 test_bit(R5_Wantcompute, &sh->dev[qd_idx].flags)))); in schedule_reconstruction()
3436 if (i == pd_idx || i == qd_idx) in schedule_reconstruction()
3468 int qd_idx = sh->qd_idx; in schedule_reconstruction() local
3469 struct r5dev *dev = &sh->dev[qd_idx]; in schedule_reconstruction()
3908 s->failed_num[i] == sh->qd_idx) && in need_this_block()
3930 s->failed_num[i] != sh->qd_idx && in need_this_block()
3969 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || in fetch_block()
4135 if (sh->qd_idx >= 0) { in handle_stripe_clean_event()
4136 clear_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4137 clear_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4216 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4228 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4281 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4306 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4449 int qd_idx = sh->qd_idx; in handle_parity_checks6() local
4533 dev = &sh->dev[qd_idx]; in handle_parity_checks6()
4604 &sh->dev[qd_idx].flags); in handle_parity_checks6()
4605 *target = qd_idx; in handle_parity_checks6()
4632 if (i != sh->pd_idx && i != sh->qd_idx) { in handle_stripe_expansion()
4666 j != sh2->qd_idx && in handle_stripe_expansion()
5039 atomic_read(&sh->count), sh->pd_idx, sh->qd_idx, in handle_stripe()
5106 BUG_ON(sh->qd_idx >= 0 && in handle_stripe()
5107 !test_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags) && in handle_stripe()
5108 !test_bit(R5_Discard, &sh->dev[sh->qd_idx].flags)); in handle_stripe()
5112 (i == sh->pd_idx || i == sh->qd_idx || in handle_stripe()
5122 ((i == sh->pd_idx || i == sh->qd_idx) && in handle_stripe()
5138 qdev = &sh->dev[sh->qd_idx]; in handle_stripe()
5139 s.q_failed = (s.failed >= 1 && s.failed_num[0] == sh->qd_idx) in handle_stripe()
5140 || (s.failed >= 2 && s.failed_num[1] == sh->qd_idx) in handle_stripe()
5828 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
5842 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
5926 if (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in add_all_stripe_bios()
5946 if (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in add_all_stripe_bios()
6124 while (dd_idx == sh.pd_idx || dd_idx == sh.qd_idx) in raid5_bio_lowest_chunk_sector()
6436 j == sh->qd_idx) in reshape_request()