RDS: IB: add connection info to ibmr
authorsantosh.shilimkar@oracle.com <santosh.shilimkar@oracle.com>
Tue, 1 Mar 2016 23:20:49 +0000 (15:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:13:18 +0000 (14:13 -0500)
Preperatory patch for FRMR support. From connection info,
we can retrieve cm_id which contains qp handled needed for
work request posting.

We also need to drop the RDS connection on QP error states
where connection handle becomes useful.

Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_mr.h

index f5c1fcb4b91ec4bd9833422041d81019599880fe..add7725bc0623554b3b1dabd314da6ba45b2aad9 100644 (file)
@@ -50,18 +50,19 @@ struct rds_ib_fmr {
 
 /* This is stored as mr->r_trans_private. */
 struct rds_ib_mr {
-       struct rds_ib_device    *device;
-       struct rds_ib_mr_pool   *pool;
+       struct rds_ib_device            *device;
+       struct rds_ib_mr_pool           *pool;
+       struct rds_ib_connection        *ic;
 
-       struct llist_node       llnode;
+       struct llist_node               llnode;
 
        /* unmap_list is for freeing */
-       struct list_head        unmap_list;
-       unsigned int            remap_count;
+       struct list_head                unmap_list;
+       unsigned int                    remap_count;
 
-       struct scatterlist      *sg;
-       unsigned int            sg_len;
-       int                     sg_dma_len;
+       struct scatterlist              *sg;
+       unsigned int                    sg_len;
+       int                             sg_dma_len;
 
        union {
                struct rds_ib_fmr       fmr;