IB/srp: Remove use of cached P_Key/GID queries
authorRoland Dreier <rolandd@cisco.com>
Tue, 15 Jul 2008 06:48:43 +0000 (23:48 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 15 Jul 2008 06:48:43 +0000 (23:48 -0700)
commit969a60f9db3f879f95bd37026a3c3bf02cc2568f
tree1099a085e7b171f45051741f9e0da91af6eaeb04
parent50515af207d410c9f228380e529c56f43c3de0bd
IB/srp: Remove use of cached P_Key/GID queries

The SRP initiator is currently using ib_find_cached_pkey() and
ib_get_cached_gid() in situations where the uncached ib_find_pkey()
and ib_query_gid() functions serve just as well: sleeping is allowed
and performance is not an issue.  Since we want to eliminate the
cached operations in the long term, convert SRP to use the uncached
variants.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c