staging/o2iblnd: Avoid calling ib_query_device
authorOr Gerlitz <ogerlitz@mellanox.com>
Fri, 18 Dec 2015 08:59:49 +0000 (10:59 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Dec 2015 19:39:00 +0000 (14:39 -0500)
commitcebfe5ca038e2a0f677b41e9682501708ffa2ff3
treeed62aa58f2a8cbdaa82baf081f09d354d9490cd0
parente3e45b1b43988b99007a9908ca0ba738b3fbd0ff
staging/o2iblnd: Avoid calling ib_query_device

Instead, use the cached copy of the attributes present on the device.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c