diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2017-08-02 20:34:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-03 19:27:59 +0300 |
commit | 840df162b3eb3ec02e2613411fad1285a0017c13 (patch) | |
tree | 5ec355be6696b937685350cc1bd55b13967e3cdf /net/rds/rds.h | |
parent | 93b1b31f87ae7c0795afc7586d28f3ed4f859d20 (diff) | |
download | linux-840df162b3eb3ec02e2613411fad1285a0017c13.tar.xz |
rds: reduce memory footprint for RDS when transport is RDMA
RDS over IB does not use multipath RDS, so the array
of additional rds_conn_path structures is always superfluous
in this case. Reduce the memory footprint of the rds module
by making this a dynamic allocation predicated on whether
the transport is mp_capable.
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Tested-by: Efrain Galaviz <efrain.galaviz@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/rds.h')
-rw-r--r-- | net/rds/rds.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/rds.h b/net/rds/rds.h index 3382695bf46c..2e0315b159cb 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h @@ -154,7 +154,7 @@ struct rds_connection { struct list_head c_map_item; unsigned long c_map_queued; - struct rds_conn_path c_path[RDS_MPATH_WORKERS]; + struct rds_conn_path *c_path; wait_queue_head_t c_hs_waitq; /* handshake waitq */ u32 c_my_gen_num; |