diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-01-21 11:03:27 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2015-01-30 10:47:48 -0500 |
commit | 7bc7972cdd1f137552ca979caa11c8acbe119ae8 (patch) | |
tree | 14badd58f929053f11a9154c7f9f67e407d420cd /net/sunrpc/xprtrdma/xprt_rdma.h | |
parent | 5ae711a24601257f395c1f8746ac95be0cbd75e5 (diff) | |
download | linux-7bc7972cdd1f137552ca979caa11c8acbe119ae8.tar.gz linux-7bc7972cdd1f137552ca979caa11c8acbe119ae8.tar.bz2 linux-7bc7972cdd1f137552ca979caa11c8acbe119ae8.zip |
xprtrdma: Take struct ib_device_attr off the stack
Device attributes are large, and are used in more than one place.
Stash a copy in dynamically allocated memory.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/xprt_rdma.h')
-rw-r--r-- | net/sunrpc/xprtrdma/xprt_rdma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index 657c370e48b9..ec596cebc966 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h @@ -70,6 +70,7 @@ struct rpcrdma_ia { int ri_async_rc; enum rpcrdma_memreg ri_memreg_strategy; unsigned int ri_max_frmr_depth; + struct ib_device_attr ri_devattr; }; /* |