Lines Matching refs:batch_head

583 	BUG_ON(sh->batch_head);  in init_stripe()
948 if (sh->batch_head) in stripe_add_to_batch_list()
958 if (head->batch_head) { in stripe_add_to_batch_list()
959 spin_lock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
962 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
972 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
979 spin_unlock(&head->batch_head->batch_lock); in stripe_add_to_batch_list()
981 head->batch_head = head; in stripe_add_to_batch_list()
982 sh->batch_head = head->batch_head; in stripe_add_to_batch_list()
995 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && in stripe_add_to_batch_list()
996 sh->batch_head->bm_seq > seq) in stripe_add_to_batch_list()
997 seq = sh->batch_head->bm_seq; in stripe_add_to_batch_list()
998 set_bit(STRIPE_BIT_DELAY, &sh->batch_head->state); in stripe_add_to_batch_list()
999 sh->batch_head->bm_seq = seq; in stripe_add_to_batch_list()
1371 if (!head_sh->batch_head) in ops_run_io()
1493 BUG_ON(sh->batch_head); in ops_run_biofill()
1588 BUG_ON(sh->batch_head); in ops_run_compute5()
1686 BUG_ON(sh->batch_head); in ops_run_compute6_1()
1750 BUG_ON(sh->batch_head); in ops_run_compute6_2()
1883 BUG_ON(sh->batch_head); in ops_run_prexor5()
1991 if (head_sh->batch_head) { in ops_run_biodrain()
2120 last_stripe = !head_sh->batch_head || in ops_run_reconstruct5()
2192 last_stripe = !head_sh->batch_head || in ops_run_reconstruct6()
2242 BUG_ON(sh->batch_head); in ops_run_check_p()
2276 BUG_ON(sh->batch_head); in ops_run_check_pq()
2351 if (overlap_clear && !sh->batch_head) { in raid_run_ops()
2949 if (sh->batch_head && bi->bi_status && !replacement) in raid5_end_write_request()
2950 set_bit(STRIPE_BATCH_ERR, &sh->batch_head->state); in raid5_end_write_request()
2957 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request()
2958 raid5_release_stripe(sh->batch_head); in raid5_end_write_request()
3497 if (sh->batch_head) in stripe_bio_overlaps()
3613 if (!sh->batch_head) { in __add_stripe_bio()
3664 BUG_ON(sh->batch_head); in handle_failed_stripe()
3779 BUG_ON(sh->batch_head); in handle_failed_sync()
3957 BUG_ON(sh->batch_head); in fetch_block()
4113 if (head_sh->batch_head) { in handle_stripe_clean_event()
4151 if (head_sh->batch_head) { in handle_stripe_clean_event()
4168 if (head_sh->batch_head && do_endio) in handle_stripe_clean_event()
4356 BUG_ON(sh->batch_head); in handle_parity_checks5()
4452 BUG_ON(sh->batch_head); in handle_parity_checks6()
4629 BUG_ON(sh->batch_head); in handle_stripe_expansion()
4704 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; in analyse_stripe()
4705 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; in analyse_stripe()
4897 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready()
4899 if (!sh->batch_head) { in clear_batch_ready()
4908 if (sh->batch_head != sh) { in clear_batch_ready()
4962 sh->batch_head = NULL; in break_stripe_batch_list()
4976 head_sh->batch_head = NULL; in break_stripe_batch_list()
5018 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { in handle_stripe()
6077 if ((!sh->batch_head || sh == sh->batch_head) && in make_stripe_request()