diff options
author | Frank Blaschka <frank.blaschka@de.ibm.com> | 2009-11-12 21:46:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-13 20:46:59 -0800 |
commit | 1e1815be87e45ce512f998ab35e9554c25031f4d (patch) | |
tree | cdea8e94953577889386289d10b750426aade29c /drivers/s390/net/fsm.h | |
parent | b7c2aecc0747f5c86a1959bce6a7ce8170a556b0 (diff) | |
download | op-kernel-dev-1e1815be87e45ce512f998ab35e9554c25031f4d.zip op-kernel-dev-1e1815be87e45ce512f998ab35e9554c25031f4d.tar.gz |
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.h')
-rw-r--r-- | drivers/s390/net/fsm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/net/fsm.h b/drivers/s390/net/fsm.h index af679c1..1e8b235 100644 --- a/drivers/s390/net/fsm.h +++ b/drivers/s390/net/fsm.h @@ -66,6 +66,7 @@ typedef struct fsm_instance_t { char name[16]; void *userdata; int userint; + wait_queue_head_t wait_q; #if FSM_DEBUG_HISTORY int history_index; int history_size; @@ -197,6 +198,7 @@ fsm_newstate(fsm_instance *fi, int newstate) printk(KERN_DEBUG "fsm(%s): New state %s\n", fi->name, fi->f->state_names[newstate]); #endif + wake_up(&fi->wait_q); } /** |