summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-05-26 11:51:56 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2015-06-12 13:10:36 -0400
commit89e0d11258e9a69d550fd4bfb4609e955bdd84ee (patch)
treec757bfd52ebc5cf3bc022ca2191976867d27b267 /sound
parent494ae30d2a47cf439c6a680cc62e09ae0c51d190 (diff)
downloadlinux-89e0d11258e9a69d550fd4bfb4609e955bdd84ee.tar.bz2
xprtrdma: Use ib_device pointer safely
The connect worker can replace ri_id, but prevents ri_id->device from changing during the lifetime of a transport instance. The old ID is kept around until a new ID is created and the ->device is confirmed to be the same. Cache a copy of ri_id->device in rpcrdma_ia and in rpcrdma_rep. The cached copy can be used safely in code that does not serialize with the connect worker. Other code can use it to save an extra address generation (one pointer dereference instead of two). Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com> Tested-By: Devesh Sharma <devesh.sharma@avagotech.com> Reviewed-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions