Skip to content

Commit

Permalink
s390/qeth: don't re-start read cmd when IDX has terminated
Browse files Browse the repository at this point in the history
Once the IDX connection is down, there's no point in trying to issue
more IOs.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Julian Wiedmann authored and David S. Miller committed Feb 27, 2020
1 parent 7f23d55 commit 3a5bad6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ static void qeth_issue_next_read_cb(struct qeth_card *card,
/* fall through */
default:
qeth_clear_ipacmd_list(card);
goto out;
goto err_idx;
}

cmd = __ipa_reply(iob);
Expand Down Expand Up @@ -795,8 +795,9 @@ static void qeth_issue_next_read_cb(struct qeth_card *card,
memcpy(&card->seqno.pdu_hdr_ack,
QETH_PDU_HEADER_SEQ_NO(iob->data),
QETH_SEQ_NO_LENGTH);
qeth_put_cmd(iob);
__qeth_issue_next_read(card);
err_idx:
qeth_put_cmd(iob);
}

static int qeth_set_thread_start_bit(struct qeth_card *card,
Expand Down

0 comments on commit 3a5bad6

Please sign in to comment.