xprtrdma: Take struct ib_device_attr off the stack
authorChuck Lever <chuck.lever@oracle.com>
Wed, 21 Jan 2015 16:03:27 +0000 (11:03 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 30 Jan 2015 15:47:48 +0000 (10:47 -0500)
commit7bc7972cdd1f137552ca979caa11c8acbe119ae8
tree14badd58f929053f11a9154c7f9f67e407d420cd
parent5ae711a24601257f395c1f8746ac95be0cbd75e5
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>
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h