Lines Matching refs:batch_head
505 BUG_ON(sh->batch_head); in init_stripe()
794 if (sh->batch_head) in stripe_add_to_batch_list()
804 if (head->batch_head) { in stripe_add_to_batch_list()
805 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
808 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
818 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
825 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
827 head->batch_head = head; in stripe_add_to_batch_list()
828 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
841 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
842 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
843 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
844 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
845 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1220 if (!head_sh->batch_head) in ops_run_io()
1339 BUG_ON(sh->batch_head); in ops_run_biofill()
1428 BUG_ON(sh->batch_head); in ops_run_compute5()
1511 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1570 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1690 BUG_ON(sh->batch_head); in ops_run_prexor5()
1787 if (head_sh->batch_head) { in ops_run_biodrain()
1907 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
1975 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
2022 BUG_ON(sh->batch_head); in ops_run_check_p()
2051 BUG_ON(sh->batch_head); in ops_run_check_pq()
2126 if (overlap_clear && !sh->batch_head) in raid_run_ops()
2663 if (sh->batch_head && bi->bi_status && !replacement) in raid5_end_write_request()
2664 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2672 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2673 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
3212 if (sh->batch_head) in add_stripe_bio()
3306 if (!sh->batch_head) { in add_stripe_bio()
3346 BUG_ON(sh->batch_head); in handle_failed_stripe()
3461 BUG_ON(sh->batch_head); in handle_failed_sync()
3628 BUG_ON(sh->batch_head); in fetch_block()
3784 if (head_sh->batch_head) { in handle_stripe_clean_event()
3822 if (head_sh->batch_head) { in handle_stripe_clean_event()
3839 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
4031 BUG_ON(sh->batch_head); in handle_parity_checks5()
4127 BUG_ON(sh->batch_head); in handle_parity_checks6()
4296 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4369 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4370 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4562 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4564 if (!sh->batch_head) { in clear_batch_ready()
4573 if (sh->batch_head != sh) { in clear_batch_ready()
4628 sh->batch_head = NULL; in break_stripe_batch_list()
4642 head_sh->batch_head = NULL; in break_stripe_batch_list()
4679 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
5718 if ((!sh->batch_head || sh == sh->batch_head) && in raid5_make_request()