Lines Matching refs:batch_head
584 BUG_ON(sh->batch_head); in init_stripe()
947 if (sh->batch_head) in stripe_add_to_batch_list()
957 if (head->batch_head) { in stripe_add_to_batch_list()
958 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
961 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
971 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
978 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
980 head->batch_head = head; in stripe_add_to_batch_list()
981 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
994 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
995 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
996 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
997 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
998 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1345 if (!head_sh->batch_head) in ops_run_io()
1467 BUG_ON(sh->batch_head); in ops_run_biofill()
1562 BUG_ON(sh->batch_head); in ops_run_compute5()
1660 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1724 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1857 BUG_ON(sh->batch_head); in ops_run_prexor5()
1965 if (head_sh->batch_head) { in ops_run_biodrain()
2094 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
2166 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
2216 BUG_ON(sh->batch_head); in ops_run_check_p()
2250 BUG_ON(sh->batch_head); in ops_run_check_pq()
2325 if (overlap_clear && !sh->batch_head) { in raid_run_ops()
2894 if (sh->batch_head && bi->bi_status && !replacement) in raid5_end_write_request()
2895 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2902 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2903 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
3442 if (sh->batch_head) in stripe_bio_overlaps()
3539 if (conf->mddev->bitmap && firstwrite && !sh->batch_head) { in __add_stripe_bio()
3589 BUG_ON(sh->batch_head); in handle_failed_stripe()
3691 BUG_ON(sh->batch_head); in handle_failed_sync()
3867 BUG_ON(sh->batch_head); in fetch_block()
4020 if (head_sh->batch_head) { in handle_stripe_clean_event()
4058 if (head_sh->batch_head) { in handle_stripe_clean_event()
4075 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
4263 BUG_ON(sh->batch_head); in handle_parity_checks5()
4358 BUG_ON(sh->batch_head); in handle_parity_checks6()
4534 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4609 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4610 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4796 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4798 if (!sh->batch_head) { in clear_batch_ready()
4807 if (sh->batch_head != sh) { in clear_batch_ready()
4858 sh->batch_head = NULL; in break_stripe_batch_list()
4872 head_sh->batch_head = NULL; in break_stripe_batch_list()
4911 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
6010 if ((!sh->batch_head || sh == sh->batch_head) && in make_stripe_request()