RDMA/nes: Free kmap() resources

We fail when creating many qps as kmap() fails for sq_vbase.
Fix this by doing kunmap() as soon as we are done with sq_vbase.
We do kunmap() in one of the locations below:

(1) nes_destroy_qp()
(2) nes_accept()
(3) nes_connect_event

We keep a flag to avoid multiple calls to kunmap().

Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
此提交包含在:
Faisal Latif
2009-12-09 15:54:28 -08:00
提交者 Roland Dreier
父節點 fd000e12a5
當前提交 d2fa9b26e1
共有 3 個檔案被更改,包括 19 行新增2 行删除

查看文件

@@ -175,5 +175,6 @@ struct nes_qp {
u8 hw_iwarp_state;
u8 hw_tcp_state;
u8 term_flags;
u8 sq_kmapped;
};
#endif /* NES_VERBS_H */