diff options
author | Steve Wise <swise@opengridcomputing.com> | 2017-09-26 13:11:36 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-09-29 11:46:41 -0400 |
commit | 7088a9ba624599696f920eac552eac69366c8440 (patch) | |
tree | 2f75566462b7c334cb906647c66e9530fff81f2e /drivers/infiniband/hw/cxgb4/iw_cxgb4.h | |
parent | 13ce83174afaf4ceb4dddd7b7e421778ee4fcf5e (diff) | |
download | lwn-7088a9ba624599696f920eac552eac69366c8440.tar.gz lwn-7088a9ba624599696f920eac552eac69366c8440.zip |
iw_cxgb4: allocate wait object for each qp 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 3e0ac5648657..f143c00731ad 100644 --- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h +++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h @@ -487,6 +487,7 @@ struct c4iw_qp { int sq_sig_all; struct work_struct free_work; struct c4iw_ucontext *ucontext; + struct c4iw_wr_wait *wr_waitp; }; static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp) |