Lines Matching refs:batch_head

529 	BUG_ON(sh->batch_head);  in init_stripe()
803 if (sh->batch_head) in stripe_add_to_batch_list()
812 if (head->batch_head) { in stripe_add_to_batch_list()
813 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
816 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
825 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
827 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
829 head->batch_head = head; in stripe_add_to_batch_list()
830 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
843 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
844 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
845 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
846 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
847 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1094 if (!head_sh->batch_head) in ops_run_io()
1215 BUG_ON(sh->batch_head); in ops_run_biofill()
1304 BUG_ON(sh->batch_head); in ops_run_compute5()
1381 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1440 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1553 BUG_ON(sh->batch_head); in ops_run_prexor5()
1640 if (head_sh->batch_head) { in ops_run_biodrain()
1756 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
1824 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
1871 BUG_ON(sh->batch_head); in ops_run_check_p()
1900 BUG_ON(sh->batch_head); in ops_run_check_pq()
1972 if (overlap_clear && !sh->batch_head) in raid_run_ops()
2475 if (sh->batch_head && !uptodate && !replacement) in raid5_end_write_request()
2476 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2483 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2484 release_stripe(sh->batch_head); in raid5_end_write_request()
2974 if (sh->batch_head) in add_stripe_bio()
3037 if (!sh->batch_head) { in add_stripe_bio()
3078 BUG_ON(sh->batch_head); in handle_failed_stripe()
3194 BUG_ON(sh->batch_head); in handle_failed_sync()
3359 BUG_ON(sh->batch_head); in fetch_block()
3491 if (head_sh->batch_head) { in handle_stripe_clean_event()
3528 if (head_sh->batch_head) { in handle_stripe_clean_event()
3545 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
3686 BUG_ON(sh->batch_head); in handle_parity_checks5()
3777 BUG_ON(sh->batch_head); in handle_parity_checks6()
3941 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4014 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4015 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4193 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4195 if (!sh->batch_head) { in clear_batch_ready()
4204 if (sh->batch_head != sh) { in clear_batch_ready()
4262 sh->batch_head = NULL; in break_stripe_batch_list()
4270 head_sh->batch_head = NULL; in break_stripe_batch_list()
4307 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
5301 if ((!sh->batch_head || sh == sh->batch_head) && in make_request()