Skip to content

Commit a3f12da

Browse files
Steve Wisedledford
authored andcommitted
iw_cxgb4: allocate wait object for each memory object
Remove the local stack allocated c4iw_wr_wait object in preparation for correctly handling timeouts. Also refactored some code to simplify it and make errpath unwinding more readable. Signed-off-by: Steve Wise <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent e930b4d commit a3f12da

File tree

2 files changed

+141
-89
lines changed

2 files changed

+141
-89
lines changed

drivers/infiniband/hw/cxgb4/iw_cxgb4.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ struct c4iw_mr {
394394
dma_addr_t mpl_addr;
395395
u32 max_mpl_len;
396396
u32 mpl_len;
397+
struct c4iw_wr_wait *wr_waitp;
397398
};
398399

399400
static inline struct c4iw_mr *to_c4iw_mr(struct ib_mr *ibmr)
@@ -407,6 +408,7 @@ struct c4iw_mw {
407408
struct sk_buff *dereg_skb;
408409
u64 kva;
409410
struct tpt_attributes attr;
411+
struct c4iw_wr_wait *wr_waitp;
410412
};
411413

412414
static inline struct c4iw_mw *to_c4iw_mw(struct ib_mw *ibmw)

0 commit comments

Comments
 (0)