Lines Matching refs:batch_head
588 BUG_ON(sh->batch_head); in init_stripe()
951 if (sh->batch_head) in stripe_add_to_batch_list()
961 if (head->batch_head) { in stripe_add_to_batch_list()
962 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
965 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
975 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
982 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
984 head->batch_head = head; in stripe_add_to_batch_list()
985 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
998 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
999 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
1000 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
1001 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
1002 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1349 if (!head_sh->batch_head) in ops_run_io()
1471 BUG_ON(sh->batch_head); in ops_run_biofill()
1566 BUG_ON(sh->batch_head); in ops_run_compute5()
1664 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1728 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1861 BUG_ON(sh->batch_head); in ops_run_prexor5()
1969 if (head_sh->batch_head) { in ops_run_biodrain()
2098 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
2170 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
2220 BUG_ON(sh->batch_head); in ops_run_check_p()
2254 BUG_ON(sh->batch_head); in ops_run_check_pq()
2329 if (overlap_clear && !sh->batch_head) { in raid_run_ops()
2896 if (sh->batch_head && bi->bi_status && !replacement) in raid5_end_write_request()
2897 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2904 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2905 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
3443 if (sh->batch_head) in stripe_bio_overlaps()
3540 if (conf->mddev->bitmap && firstwrite && !sh->batch_head) { in __add_stripe_bio()
3590 BUG_ON(sh->batch_head); in handle_failed_stripe()
3691 BUG_ON(sh->batch_head); in handle_failed_sync()
3872 BUG_ON(sh->batch_head); in fetch_block()
4025 if (head_sh->batch_head) { in handle_stripe_clean_event()
4063 if (head_sh->batch_head) { in handle_stripe_clean_event()
4080 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
4275 BUG_ON(sh->batch_head); in handle_parity_checks5()
4370 BUG_ON(sh->batch_head); in handle_parity_checks6()
4546 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4621 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4622 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4819 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4821 if (!sh->batch_head) { in clear_batch_ready()
4830 if (sh->batch_head != sh) { in clear_batch_ready()
4881 sh->batch_head = NULL; in break_stripe_batch_list()
4895 head_sh->batch_head = NULL; in break_stripe_batch_list()
4934 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
6033 if ((!sh->batch_head || sh == sh->batch_head) && in make_stripe_request()