summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/fsm.c
diff options
context:
space:
mode:
authorFrank Blaschka <frank.blaschka@de.ibm.com>2009-11-12 22:46:28 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-14 05:46:59 +0100
commit1e1815be87e45ce512f998ab35e9554c25031f4d (patch)
treecdea8e94953577889386289d10b750426aade29c /drivers/s390/net/fsm.c
parentiucv: add work_queue cleanup for suspend (diff)
downloadlinux-1e1815be87e45ce512f998ab35e9554c25031f4d.tar.xz
linux-1e1815be87e45ce512f998ab35e9554c25031f4d.zip
ctcm: suspend has to wait for outstanding I/O
State transition to DEV_STATE_STOPPED indicates all outstanding I/O has finished. Add wait queue to wait for this state. Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/fsm.c')
-rw-r--r--drivers/s390/net/fsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/net/fsm.c b/drivers/s390/net/fsm.c
index 2c1db8036b7c..cae48cbc5e96 100644
--- a/drivers/s390/net/fsm.c
+++ b/drivers/s390/net/fsm.c
@@ -27,6 +27,7 @@ init_fsm(char *name, const char **state_names, const char **event_names, int nr_
return NULL;
}
strlcpy(this->name, name, sizeof(this->name));
+ init_waitqueue_head(&this->wait_q);
f = kzalloc(sizeof(fsm), order);
if (f == NULL) {