Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279035
b: refs/heads/master
c: 3f36b89
h: refs/heads/master
i:
  279033: b2af13c
  279031: 70e0a54
v: v3
  • Loading branch information
Frank Blaschka authored and David S. Miller committed Dec 20, 2011
1 parent c64cfb3 commit 1e01680
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: 08e3356cc2c0ce8f3359b3d2636c897ac71240ce
refs/heads/master: 3f36b890dea7c2fc2fe25fb507552a46a226048a
11 changes: 9 additions & 2 deletions trunk/drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1329,16 +1329,23 @@ static int qeth_do_start_thread(struct qeth_card *card, unsigned long thread)

static void qeth_start_kernel_thread(struct work_struct *work)
{
struct task_struct *ts;
struct qeth_card *card = container_of(work, struct qeth_card,
kernel_thread_starter);
QETH_CARD_TEXT(card , 2, "strthrd");

if (card->read.state != CH_STATE_UP &&
card->write.state != CH_STATE_UP)
return;
if (qeth_do_start_thread(card, QETH_RECOVER_THREAD))
kthread_run(card->discipline.recover, (void *) card,
if (qeth_do_start_thread(card, QETH_RECOVER_THREAD)) {
ts = kthread_run(card->discipline.recover, (void *)card,
"qeth_recover");
if (IS_ERR(ts)) {
qeth_clear_thread_start_bit(card, QETH_RECOVER_THREAD);
qeth_clear_thread_running_bit(card,
QETH_RECOVER_THREAD);
}
}
}

static int qeth_setup_card(struct qeth_card *card)
Expand Down

0 comments on commit 1e01680

Please sign in to comment.