Lines Matching refs:head_sh

1144 	struct stripe_head *head_sh = sh;
1163 sh = head_sh;
1195 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev)
1261 if (sh != head_sh)
1262 atomic_inc(&head_sh->count);
1269 if (test_bit(R5_ReadNoMerge, &head_sh->dev[i].flags))
1321 if (sh != head_sh)
1322 atomic_inc(&head_sh->count);
1357 if (!head_sh->batch_head)
1361 if (sh != head_sh)
1366 defer_issue_bios(conf, head_sh->sector, &pending_bios);
1925 struct stripe_head *head_sh = sh;
1934 sh = head_sh;
1935 if (test_and_clear_bit(R5_Wantdrain, &head_sh->dev[i].flags)) {
1977 if (head_sh->batch_head) {
1981 if (sh == head_sh)
2052 struct stripe_head *head_sh = sh;
2077 if (head_sh->reconstruct_state == reconstruct_state_prexor_drain_run) {
2083 if (head_sh->dev[i].written ||
2084 test_bit(R5_InJournal, &head_sh->dev[i].flags)) {
2106 last_stripe = !head_sh->batch_head ||
2108 struct stripe_head, batch_list) == head_sh;
2113 atomic_inc(&head_sh->count);
2114 init_async_submit(&submit, flags, tx, ops_complete_reconstruct, head_sh,
2144 struct stripe_head *head_sh = sh;
2178 last_stripe = !head_sh->batch_head ||
2180 struct stripe_head, batch_list) == head_sh;
2183 atomic_inc(&head_sh->count);
2185 head_sh, to_addr_conv(sh, percpu, j));
4019 static void break_stripe_batch_list(struct stripe_head *head_sh,
4032 struct stripe_head *head_sh = sh;
4067 if (head_sh->batch_head) {
4071 if (sh != head_sh) {
4076 sh = head_sh;
4105 if (head_sh->batch_head) {
4108 if (sh != head_sh)
4111 sh = head_sh;
4122 if (head_sh->batch_head && do_endio)
4123 break_stripe_batch_list(head_sh, STRIPE_EXPAND_SYNC_FLAGS);
4874 static void break_stripe_batch_list(struct stripe_head *head_sh,
4881 list_for_each_entry_safe(sh, next, &head_sh->batch_list, batch_list) {
4898 WARN_ONCE(head_sh->state & ((1 << STRIPE_DISCARD) |
4900 "head stripe state: %lx\n", head_sh->state);
4906 head_sh->state & (1 << STRIPE_INSYNC));
4908 sh->check_state = head_sh->check_state;
4909 sh->reconstruct_state = head_sh->reconstruct_state;
4916 sh->dev[i].flags = head_sh->dev[i].flags &
4924 spin_lock_irq(&head_sh->stripe_lock);
4925 head_sh->batch_head = NULL;
4926 spin_unlock_irq(&head_sh->stripe_lock);
4927 for (i = 0; i < head_sh->disks; i++)
4928 if (test_and_clear_bit(R5_Overlap, &head_sh->dev[i].flags))
4930 if (head_sh->state & handle_flags)
4931 set_bit(STRIPE_HANDLE, &head_sh->state);
4934 wake_up(&head_sh->raid_conf->wait_for_overlap);