diff options
author | Stefan Roscher <ossrosch@linux.vnet.ibm.com> | 2008-05-07 11:35:06 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-05-07 11:35:06 -0700 |
commit | 12137c593d127c6c1a3eb050674da047682badaf (patch) | |
tree | f615c55e363b550c7489aa0aceeb8d62c201fcad /drivers/infiniband/hw/ehca/ehca_classes.h | |
parent | ab69b3cf1219e0d07bb4ea373f36b1de38af531c (diff) | |
download | op-kernel-dev-12137c593d127c6c1a3eb050674da047682badaf.zip op-kernel-dev-12137c593d127c6c1a3eb050674da047682badaf.tar.gz |
IB/ehca: Wait for async events to finish before destroying QP
This is necessary because, in a multicore environment, a race between
uverbs async handler and destroy QP could occur.
Signed-off-by: Stefan Roscher <stefan.roscher at de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_classes.h')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_classes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_classes.h b/drivers/infiniband/hw/ehca/ehca_classes.h index 00bab60..1e9e99a 100644 --- a/drivers/infiniband/hw/ehca/ehca_classes.h +++ b/drivers/infiniband/hw/ehca/ehca_classes.h @@ -192,6 +192,8 @@ struct ehca_qp { int mtu_shift; u32 message_count; u32 packet_count; + atomic_t nr_events; /* events seen */ + wait_queue_head_t wait_completion; }; #define IS_SRQ(qp) (qp->ext_type == EQPT_SRQ) |