Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135538
b: refs/heads/master
c: 7834cd5
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and David S. Miller committed Mar 25, 2009
1 parent d691ffe commit 2a9633e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e98ac48d06068470f1b954e599cf7b706cfceba
refs/heads/master: 7834cd5ae145c9a74d284cef073b96ee5f7f2295
9 changes: 5 additions & 4 deletions trunk/drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ int qeth_send_control_data(struct qeth_card *card, int len,
int rc;
unsigned long flags;
struct qeth_reply *reply = NULL;
unsigned long timeout;
unsigned long timeout, event_timeout;
struct qeth_ipa_cmd *cmd;

QETH_DBF_TEXT(TRACE, 2, "sendctl");
Expand All @@ -1701,9 +1701,10 @@ int qeth_send_control_data(struct qeth_card *card, int len,
qeth_prepare_control_data(card, len, iob);

if (IS_IPA(iob->data))
timeout = jiffies + QETH_IPA_TIMEOUT;
event_timeout = QETH_IPA_TIMEOUT;
else
timeout = jiffies + QETH_TIMEOUT;
event_timeout = QETH_TIMEOUT;
timeout = jiffies + event_timeout;

QETH_DBF_TEXT(TRACE, 6, "noirqpnd");
spin_lock_irqsave(get_ccwdev_lock(card->write.ccwdev), flags);
Expand Down Expand Up @@ -1731,7 +1732,7 @@ int qeth_send_control_data(struct qeth_card *card, int len,
if ((cmd->hdr.command == IPA_CMD_SETIP) &&
(cmd->hdr.prot_version == QETH_PROT_IPV4)) {
if (!wait_event_timeout(reply->wait_q,
atomic_read(&reply->received), timeout))
atomic_read(&reply->received), event_timeout))
goto time_err;
} else {
while (!atomic_read(&reply->received)) {
Expand Down

0 comments on commit 2a9633e

Please sign in to comment.