Lines Matching refs:batch_head
574 BUG_ON(sh->batch_head); in init_stripe()
867 if (sh->batch_head) in stripe_add_to_batch_list()
877 if (head->batch_head) { in stripe_add_to_batch_list()
878 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
881 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
891 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
898 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
900 head->batch_head = head; in stripe_add_to_batch_list()
901 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
914 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
915 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
916 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
917 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
918 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1293 if (!head_sh->batch_head) in ops_run_io()
1415 BUG_ON(sh->batch_head); in ops_run_biofill()
1510 BUG_ON(sh->batch_head); in ops_run_compute5()
1608 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1672 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1805 BUG_ON(sh->batch_head); in ops_run_prexor5()
1913 if (head_sh->batch_head) { in ops_run_biodrain()
2042 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
2114 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
2164 BUG_ON(sh->batch_head); in ops_run_check_p()
2198 BUG_ON(sh->batch_head); in ops_run_check_pq()
2274 if (overlap_clear && !sh->batch_head) in raid_run_ops()
2860 if (sh->batch_head && bi->bi_status && !replacement) in raid5_end_write_request()
2861 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2868 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2869 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
3418 if (sh->batch_head) in add_stripe_bio()
3512 if (!sh->batch_head) { in add_stripe_bio()
3552 BUG_ON(sh->batch_head); in handle_failed_stripe()
3667 BUG_ON(sh->batch_head); in handle_failed_sync()
3845 BUG_ON(sh->batch_head); in fetch_block()
4001 if (head_sh->batch_head) { in handle_stripe_clean_event()
4039 if (head_sh->batch_head) { in handle_stripe_clean_event()
4056 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
4244 BUG_ON(sh->batch_head); in handle_parity_checks5()
4340 BUG_ON(sh->batch_head); in handle_parity_checks6()
4517 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4591 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4592 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4784 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4786 if (!sh->batch_head) { in clear_batch_ready()
4795 if (sh->batch_head != sh) { in clear_batch_ready()
4849 sh->batch_head = NULL; in break_stripe_batch_list()
4863 head_sh->batch_head = NULL; in break_stripe_batch_list()
4905 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
5918 if ((!sh->batch_head || sh == sh->batch_head) && in raid5_make_request()