Lines Matching refs:batch_head
496 BUG_ON(sh->batch_head); in init_stripe()
789 if (sh->batch_head) in stripe_add_to_batch_list()
799 if (head->batch_head) { in stripe_add_to_batch_list()
800 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
803 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
813 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
820 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
822 head->batch_head = head; in stripe_add_to_batch_list()
823 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
836 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
837 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
838 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
839 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
840 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1215 if (!head_sh->batch_head) in ops_run_io()
1334 BUG_ON(sh->batch_head); in ops_run_biofill()
1417 BUG_ON(sh->batch_head); in ops_run_compute5()
1500 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1559 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1679 BUG_ON(sh->batch_head); in ops_run_prexor5()
1776 if (head_sh->batch_head) { in ops_run_biodrain()
1896 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
1964 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
2011 BUG_ON(sh->batch_head); in ops_run_check_p()
2040 BUG_ON(sh->batch_head); in ops_run_check_pq()
2115 if (overlap_clear && !sh->batch_head) in raid_run_ops()
2658 if (sh->batch_head && bi->bi_status && !replacement) in raid5_end_write_request()
2659 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2667 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2668 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
3219 if (sh->batch_head) in add_stripe_bio()
3313 if (!sh->batch_head) { in add_stripe_bio()
3353 BUG_ON(sh->batch_head); in handle_failed_stripe()
3468 BUG_ON(sh->batch_head); in handle_failed_sync()
3635 BUG_ON(sh->batch_head); in fetch_block()
3791 if (head_sh->batch_head) { in handle_stripe_clean_event()
3829 if (head_sh->batch_head) { in handle_stripe_clean_event()
3846 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
4038 BUG_ON(sh->batch_head); in handle_parity_checks5()
4134 BUG_ON(sh->batch_head); in handle_parity_checks6()
4311 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4384 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4385 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4577 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4579 if (!sh->batch_head) { in clear_batch_ready()
4588 if (sh->batch_head != sh) { in clear_batch_ready()
4642 sh->batch_head = NULL; in break_stripe_batch_list()
4656 head_sh->batch_head = NULL; in break_stripe_batch_list()
4693 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
5729 if (!sh->batch_head) in raid5_make_request()
5732 if ((!sh->batch_head || sh == sh->batch_head) && in raid5_make_request()