Lines Matching refs:batch_head
573 BUG_ON(sh->batch_head); in init_stripe()
866 if (sh->batch_head) in stripe_add_to_batch_list()
876 if (head->batch_head) { in stripe_add_to_batch_list()
877 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
880 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
890 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
897 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
899 head->batch_head = head; in stripe_add_to_batch_list()
900 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
913 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
914 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
915 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
916 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
917 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()
2869 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2870 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
3421 if (sh->batch_head) in add_stripe_bio()
3515 if (!sh->batch_head) { in add_stripe_bio()
3555 BUG_ON(sh->batch_head); in handle_failed_stripe()
3670 BUG_ON(sh->batch_head); in handle_failed_sync()
3848 BUG_ON(sh->batch_head); in fetch_block()
4004 if (head_sh->batch_head) { in handle_stripe_clean_event()
4042 if (head_sh->batch_head) { in handle_stripe_clean_event()
4059 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
4247 BUG_ON(sh->batch_head); in handle_parity_checks5()
4343 BUG_ON(sh->batch_head); in handle_parity_checks6()
4520 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4594 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4595 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4787 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4789 if (!sh->batch_head) { in clear_batch_ready()
4798 if (sh->batch_head != sh) { in clear_batch_ready()
4852 sh->batch_head = NULL; in break_stripe_batch_list()
4866 head_sh->batch_head = NULL; in break_stripe_batch_list()
4908 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
5924 if ((!sh->batch_head || sh == sh->batch_head) && in raid5_make_request()