Lines Matching refs:batch_head

583 	BUG_ON(sh->batch_head);  in init_stripe()
941 if (sh->batch_head) in stripe_add_to_batch_list()
951 if (head->batch_head) { in stripe_add_to_batch_list()
952 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
955 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
965 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
972 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
974 head->batch_head = head; in stripe_add_to_batch_list()
975 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
988 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
989 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
990 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
991 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
992 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1364 if (!head_sh->batch_head) in ops_run_io()
1486 BUG_ON(sh->batch_head); in ops_run_biofill()
1581 BUG_ON(sh->batch_head); in ops_run_compute5()
1679 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1743 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1876 BUG_ON(sh->batch_head); in ops_run_prexor5()
1984 if (head_sh->batch_head) { in ops_run_biodrain()
2113 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
2185 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
2235 BUG_ON(sh->batch_head); in ops_run_check_p()
2269 BUG_ON(sh->batch_head); in ops_run_check_pq()
2344 if (overlap_clear && !sh->batch_head) { in raid_run_ops()
2942 if (sh->batch_head && bi->bi_status && !replacement) in raid5_end_write_request()
2943 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2950 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2951 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
3490 if (sh->batch_head) in stripe_bio_overlaps()
3606 if (!sh->batch_head) { in __add_stripe_bio()
3657 BUG_ON(sh->batch_head); in handle_failed_stripe()
3772 BUG_ON(sh->batch_head); in handle_failed_sync()
3950 BUG_ON(sh->batch_head); in fetch_block()
4106 if (head_sh->batch_head) { in handle_stripe_clean_event()
4144 if (head_sh->batch_head) { in handle_stripe_clean_event()
4161 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
4349 BUG_ON(sh->batch_head); in handle_parity_checks5()
4445 BUG_ON(sh->batch_head); in handle_parity_checks6()
4622 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4697 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4698 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4890 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4892 if (!sh->batch_head) { in clear_batch_ready()
4901 if (sh->batch_head != sh) { in clear_batch_ready()
4955 sh->batch_head = NULL; in break_stripe_batch_list()
4969 head_sh->batch_head = NULL; in break_stripe_batch_list()
5011 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
6069 if ((!sh->batch_head || sh == sh->batch_head) && in make_stripe_request()