Lines Matching refs:batch_head
527 BUG_ON(sh->batch_head); in init_stripe()
805 if (sh->batch_head) in stripe_add_to_batch_list()
814 if (head->batch_head) { in stripe_add_to_batch_list()
815 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
818 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
827 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
829 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
831 head->batch_head = head; in stripe_add_to_batch_list()
832 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
845 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
846 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
847 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
848 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
849 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1098 if (!head_sh->batch_head) in ops_run_io()
1217 BUG_ON(sh->batch_head); in ops_run_biofill()
1306 BUG_ON(sh->batch_head); in ops_run_compute5()
1383 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1442 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1555 BUG_ON(sh->batch_head); in ops_run_prexor5()
1642 if (head_sh->batch_head) { in ops_run_biodrain()
1758 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
1826 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
1873 BUG_ON(sh->batch_head); in ops_run_check_p()
1902 BUG_ON(sh->batch_head); in ops_run_check_pq()
1974 if (overlap_clear && !sh->batch_head) in raid_run_ops()
2474 if (sh->batch_head && bi->bi_error && !replacement) in raid5_end_write_request()
2475 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2482 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2483 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
2972 if (sh->batch_head) in add_stripe_bio()
3035 if (!sh->batch_head) { in add_stripe_bio()
3076 BUG_ON(sh->batch_head); in handle_failed_stripe()
3198 BUG_ON(sh->batch_head); in handle_failed_sync()
3363 BUG_ON(sh->batch_head); in fetch_block()
3494 if (head_sh->batch_head) { in handle_stripe_clean_event()
3534 if (head_sh->batch_head) { in handle_stripe_clean_event()
3551 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
3692 BUG_ON(sh->batch_head); in handle_parity_checks5()
3783 BUG_ON(sh->batch_head); in handle_parity_checks6()
3947 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4020 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4021 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4202 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4204 if (!sh->batch_head) { in clear_batch_ready()
4213 if (sh->batch_head != sh) { in clear_batch_ready()
4271 sh->batch_head = NULL; in break_stripe_batch_list()
4279 head_sh->batch_head = NULL; in break_stripe_batch_list()
4316 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
5305 if ((!sh->batch_head || sh == sh->batch_head) && in make_request()