diff options
author | Steve Wise <swise@opengridcomputing.com> | 2017-09-26 13:08:08 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-09-29 11:46:41 -0400 |
commit | 13ce83174afaf4ceb4dddd7b7e421778ee4fcf5e (patch) | |
tree | 3edc3ac53ca134d718a185b84e450974be0af619 /drivers/infiniband/hw/cxgb4/iw_cxgb4.h | |
parent | a3f12da0e99a8d17118ee9e18a1f760a0d427b26 (diff) | |
download | lwn-13ce83174afaf4ceb4dddd7b7e421778ee4fcf5e.tar.gz lwn-13ce83174afaf4ceb4dddd7b7e421778ee4fcf5e.zip |
iw_cxgb4: allocate wait object for each cq object
Remove the local stack allocated c4iw_wr_wait object in preparation for
correctly handling timeouts.
Also cleaned up some error path unwind logic to make it more readable.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/iw_cxgb4.h')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h index 0fabe82f7b6d..3e0ac5648657 100644 --- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h +++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h @@ -425,6 +425,7 @@ struct c4iw_cq { spinlock_t comp_handler_lock; atomic_t refcnt; wait_queue_head_t wait; + struct c4iw_wr_wait *wr_waitp; }; static inline struct c4iw_cq *to_c4iw_cq(struct ib_cq *ibcq) |