Lines Matching refs:head_sh

1061 	struct stripe_head *head_sh = sh;
1078 sh = head_sh;
1115 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev)
1185 if (sh != head_sh)
1186 atomic_inc(&head_sh->count);
1193 if (test_bit(R5_ReadNoMerge, &head_sh->dev[i].flags))
1252 if (sh != head_sh)
1253 atomic_inc(&head_sh->count);
1293 if (!head_sh->batch_head)
1297 if (sh != head_sh)
1302 defer_issue_bios(conf, head_sh->sector, &pending_bios);
1861 struct stripe_head *head_sh = sh;
1870 sh = head_sh;
1871 if (test_and_clear_bit(R5_Wantdrain, &head_sh->dev[i].flags)) {
1913 if (head_sh->batch_head) {
1917 if (sh == head_sh)
1988 struct stripe_head *head_sh = sh;
2013 if (head_sh->reconstruct_state == reconstruct_state_prexor_drain_run) {
2019 if (head_sh->dev[i].written ||
2020 test_bit(R5_InJournal, &head_sh->dev[i].flags)) {
2042 last_stripe = !head_sh->batch_head ||
2044 struct stripe_head, batch_list) == head_sh;
2049 atomic_inc(&head_sh->count);
2050 init_async_submit(&submit, flags, tx, ops_complete_reconstruct, head_sh,
2080 struct stripe_head *head_sh = sh;
2114 last_stripe = !head_sh->batch_head ||
2116 struct stripe_head, batch_list) == head_sh;
2119 atomic_inc(&head_sh->count);
2121 head_sh, to_addr_conv(sh, percpu, j));
3953 static void break_stripe_batch_list(struct stripe_head *head_sh,
3966 struct stripe_head *head_sh = sh;
4001 if (head_sh->batch_head) {
4005 if (sh != head_sh) {
4010 sh = head_sh;
4039 if (head_sh->batch_head) {
4042 if (sh != head_sh)
4045 sh = head_sh;
4056 if (head_sh->batch_head && do_endio)
4057 break_stripe_batch_list(head_sh, STRIPE_EXPAND_SYNC_FLAGS);
4812 static void break_stripe_batch_list(struct stripe_head *head_sh,
4819 list_for_each_entry_safe(sh, next, &head_sh->batch_list, batch_list) {
4836 WARN_ONCE(head_sh->state & ((1 << STRIPE_DISCARD) |
4838 "head stripe state: %lx\n", head_sh->state);
4844 head_sh->state & (1 << STRIPE_INSYNC));
4846 sh->check_state = head_sh->check_state;
4847 sh->reconstruct_state = head_sh->reconstruct_state;
4854 sh->dev[i].flags = head_sh->dev[i].flags &
4862 spin_lock_irq(&head_sh->stripe_lock);
4863 head_sh->batch_head = NULL;
4864 spin_unlock_irq(&head_sh->stripe_lock);
4865 for (i = 0; i < head_sh->disks; i++)
4866 if (test_and_clear_bit(R5_Overlap, &head_sh->dev[i].flags))
4868 if (head_sh->state & handle_flags)
4869 set_bit(STRIPE_HANDLE, &head_sh->state);
4872 wake_up(&head_sh->raid_conf->wait_for_overlap);