iw_cxgb4: allocate wait object for each qp object
authorSteve Wise <swise@opengridcomputing.com>
Tue, 26 Sep 2017 20:11:36 +0000 (13:11 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 29 Sep 2017 15:46:41 +0000 (11:46 -0400)
commit7088a9ba624599696f920eac552eac69366c8440
tree2f75566462b7c334cb906647c66e9530fff81f2e
parent13ce83174afaf4ceb4dddd7b7e421778ee4fcf5e
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>
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/qp.c